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

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


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

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


Modified: code/trunk/pcre_compile.c
===================================================================
--- code/trunk/pcre_compile.c    2012-10-16 15:54:40 UTC (rev 1072)
+++ code/trunk/pcre_compile.c    2012-10-16 15:54:43 UTC (rev 1073)
@@ -2810,7 +2810,7 @@


   for (hc = save_hwm; hc < cd->hwm; hc += LINK_SIZE)
     {
-    offset = GET(hc, 0);
+    offset = (int)GET(hc, 0);
     if (cd->start_code + offset == ptr + 1)
       {
       PUT(hc, 0, offset + adjust);
@@ -2823,7 +2823,7 @@


   if (hc >= cd->hwm)
     {
-    offset = GET(ptr, 1);
+    offset = (int)GET(ptr, 1);
     if (cd->start_code + offset >= group) PUT(ptr, 1, offset + adjust);
     }