summaryrefslogtreecommitdiff
path: root/ext/Encode/Encode.xs
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2006-10-09 19:54:12 +0300
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-09 14:29:52 +0000
commit1b9a72a9dfc4967e4463f087bcdbe76648d6654c (patch)
tree5846e702292f42b6e83cf5f45853ea8c2459c37c /ext/Encode/Encode.xs
parentc68b998637502ebe0abed3dc3fad66fba3540f21 (diff)
downloadperl-1b9a72a9dfc4967e4463f087bcdbe76648d6654c.tar.gz
Encode.xs: add an explicit cast to make g++ happier
Message-Id: <20061009135412.47F7A8B3A0@seth.hut.fi> p4raw-id: //depot/perl@28974
Diffstat (limited to 'ext/Encode/Encode.xs')
-rw-r--r--ext/Encode/Encode.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/Encode/Encode.xs b/ext/Encode/Encode.xs
index 72a686ce39..895819bcb7 100644
--- a/ext/Encode/Encode.xs
+++ b/ext/Encode/Encode.xs
@@ -333,7 +333,7 @@ process_utf8(pTHX_ SV* dst, U8* s, U8* e, int check,
);
#if 1 /* perl-5.8.6 and older do not check UTF8_ALLOW_LONG */
if (strict && uv > PERL_UNICODE_MAX)
- ulen = -1;
+ ulen = (STRLEN) -1;
#endif
if (ulen == -1) {
if (strict) {