summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorJan Dubois <jand@activestate.com>2010-12-15 22:41:47 -0800
committerJan Dubois <jand@activestate.com>2010-12-16 11:24:24 -0800
commit2dcac756b8b2c3b3d7d34174ba27b78fb1c7ba4a (patch)
tree60651f69172e41b6e83652b51230581f422c51c8 /regcomp.c
parentec0363d9bb05a67dad10a50c9b76b5aba365199a (diff)
downloadperl-2dcac756b8b2c3b3d7d34174ba27b78fb1c7ba4a.tar.gz
Silence some data truncation compiler warnings
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regcomp.c b/regcomp.c
index ba3d0dca48..fb9c606cba 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -8179,14 +8179,14 @@ S_checkposixcc(pTHX_ RExC_state_t *pRExC_state)
ANYOF_##NAME: \
for (value = 0; value < 256; value++) \
if (TEST) \
- stored += S_set_regclass_bit(aTHX_ pRExC_state, ret, value); \
+ stored += S_set_regclass_bit(aTHX_ pRExC_state, ret, (U8) value); \
yesno = '+'; \
what = WORD; \
break; \
case ANYOF_N##NAME: \
for (value = 0; value < 256; value++) \
if (!TEST) \
- stored += S_set_regclass_bit(aTHX_ pRExC_state, ret, value); \
+ stored += S_set_regclass_bit(aTHX_ pRExC_state, ret, (U8) value); \
yesno = '!'; \
what = WORD; \
break
@@ -8950,7 +8950,7 @@ parseit:
&& (! _HAS_NONLATIN1_FOLD_CLOSURE_ONLY_FOR_USE_BY_REGCOMP_DOT_C_AND_REGEXEC_DOT_C(value))
/* If the latest code point has a fold whose
* bit is set, it must be the only other one */
- && ((prevvalue = PL_fold_latin1[value]) != value)
+ && ((prevvalue = PL_fold_latin1[value]) != (IV)value)
&& ANYOF_BITMAP_TEST(ret, prevvalue)))))
{
/* Note that the information needed to decide to do this optimization