[Pcre-svn] [1069] code/trunk/pcre_compile.c: pcre32: compile…

Startseite
Nachricht löschen
Autor: Subversion repository
Datum:  
To: pcre-svn
Betreff: [Pcre-svn] [1069] code/trunk/pcre_compile.c: pcre32: compile: Fix signed/ unsigned mismatch in find_bracket
Revision: 1069
          http://vcs.pcre.org/viewvc?view=rev&revision=1069
Author:   chpe
Date:     2012-10-16 16:54:29 +0100 (Tue, 16 Oct 2012)


Log Message:
-----------
pcre32: compile: Fix signed/unsigned mismatch in find_bracket

Modified Paths:
--------------
    code/trunk/pcre_compile.c


Modified: code/trunk/pcre_compile.c
===================================================================
--- code/trunk/pcre_compile.c    2012-10-16 15:54:26 UTC (rev 1068)
+++ code/trunk/pcre_compile.c    2012-10-16 15:54:29 UTC (rev 1069)
@@ -2059,7 +2059,7 @@
 {
 for (;;)
   {
-  register int c = *code;
+  register pcre_uchar c = *code;


if (c == OP_END) return NULL;

@@ -2082,7 +2082,7 @@
   else if (c == OP_CBRA || c == OP_SCBRA ||
            c == OP_CBRAPOS || c == OP_SCBRAPOS)
     {
-    int n = GET2(code, 1+LINK_SIZE);
+    int n = (int)GET2(code, 1+LINK_SIZE);
     if (n == number) return (pcre_uchar *)code;
     code += PRIV(OP_lengths)[c];
     }