Revision: 1071
http://vcs.pcre.org/viewvc?view=rev&revision=1071
Author: chpe
Date: 2012-10-16 16:54:37 +0100 (Tue, 16 Oct 2012)
Log Message:
-----------
pcre32: compile: Fix signed/unsigned mismatch in could_be_empty_branch
Modified Paths:
--------------
code/trunk/pcre_compile.c
Modified: code/trunk/pcre_compile.c
===================================================================
--- code/trunk/pcre_compile.c 2012-10-16 15:54:33 UTC (rev 1070)
+++ code/trunk/pcre_compile.c 2012-10-16 15:54:37 UTC (rev 1071)
@@ -2351,7 +2351,7 @@
could_be_empty_branch(const pcre_uchar *code, const pcre_uchar *endcode,
BOOL utf, compile_data *cd)
{
-register int c;
+register pcre_uchar c;
for (code = first_significant_code(code + PRIV(OP_lengths)[*code], TRUE);
code < endcode;
code = first_significant_code(code + PRIV(OP_lengths)[c], TRUE))
@@ -2385,7 +2385,7 @@
/* Test for forward reference */
for (scode = cd->start_workspace; scode < cd->hwm; scode += LINK_SIZE)
- if (GET(scode, 0) == code + 1 - cd->start_code) return TRUE;
+ if ((int)GET(scode, 0) == (int)(code + 1 - cd->start_code)) return TRUE;
/* Not a forward reference, test for completed backward reference */