[Pcre-svn] [1130] code/trunk/pcre_compile.c: pcre32: Fix sig…

Kezdőlap
Üzenet törlése
Szerző: Subversion repository
Dátum:  
Címzett: pcre-svn
Tárgy: [Pcre-svn] [1130] code/trunk/pcre_compile.c: pcre32: Fix signed-unsigned compare
Revision: 1130
          http://vcs.pcre.org/viewvc?view=rev&revision=1130
Author:   chpe
Date:     2012-10-18 19:35:15 +0100 (Thu, 18 Oct 2012)


Log Message:
-----------
pcre32: Fix signed-unsigned compare

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


Modified: code/trunk/pcre_compile.c
===================================================================
--- code/trunk/pcre_compile.c    2012-10-18 18:35:11 UTC (rev 1129)
+++ code/trunk/pcre_compile.c    2012-10-18 18:35:15 UTC (rev 1130)
@@ -2969,7 +2969,7 @@
 */


static BOOL
-check_char_prop(pcre_uint32 c, int ptype, int pdata, BOOL negated)
+check_char_prop(pcre_uint32 c, unsigned int ptype, unsigned int pdata, BOOL negated)
{
#ifdef SUPPORT_UCP
const pcre_uint32 *p;
@@ -3255,10 +3255,10 @@

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


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


     default: