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

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


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

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


Modified: code/trunk/pcre_compile.c
===================================================================
--- code/trunk/pcre_compile.c    2012-10-16 15:54:51 UTC (rev 1075)
+++ code/trunk/pcre_compile.c    2012-10-16 15:54:54 UTC (rev 1076)
@@ -3053,7 +3053,7 @@
 pcre_uint32 c = NOTACHAR;
 pcre_uint32 next;
 int escape;
-int op_code = *previous++;
+pcre_uchar op_code = *previous++;


/* Skip whitespace and comments in extended mode */

@@ -3251,10 +3251,10 @@

 #ifdef SUPPORT_UCP
     case OP_PROP:
-    return check_char_prop(next, previous[0], previous[1], FALSE);
+    return check_char_prop(next, (int)previous[0], (int)previous[1], FALSE);


     case OP_NOTPROP:
-    return check_char_prop(next, previous[0], previous[1], TRUE);
+    return check_char_prop(next, (int)previous[0], (int)previous[1], TRUE);
 #endif


     default: