From 7cc714e6fcfa273528fd03bf2a95cd9a923185f6 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Mon, 9 Jul 2012 13:59:09 -0600 Subject: [PATCH] regcomp.c: Silence compiler warning I suspect this being an IV stemmed from an earlier version. It always contains unsigneds --- regcomp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regcomp.c b/regcomp.c index 4740670..529ad3f 100644 --- a/regcomp.c +++ b/regcomp.c @@ -11065,7 +11065,7 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, U32 depth) { dVAR; register UV nextvalue; - register IV prevvalue = OOB_UNICODE; + register UV prevvalue = OOB_UNICODE; register IV range = 0; UV value = 0; /* XXX:dmq: needs to be referenceable (unfortunately) */ register regnode *ret; @@ -11717,7 +11717,7 @@ parseit: } /* end of namedclass \blah */ if (range) { - if (prevvalue > (IV)value) /* b-a */ { + if (prevvalue > value) /* b-a */ { const int w = RExC_parse - rangebegin; Simple_vFAIL4("Invalid [] range \"%*.*s\"", w, w, rangebegin); range = 0; /* not a valid range */ @@ -12454,7 +12454,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]) != (IV)value) + && ((prevvalue = PL_fold_latin1[value]) != value) && ANYOF_BITMAP_TEST(ret, prevvalue))))) { /* Note that the information needed to decide to do this optimization -- 2.7.4