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

Kezdőlap
Üzenet törlése
Szerző: Subversion repository
Dátum:  
Címzett: pcre-svn
Tárgy: [Pcre-svn] [1074] code/trunk/pcre_compile.c: pcre32: compile: Fix signed/ unsigned mismatch in check_posix_name
Revision: 1074
          http://vcs.pcre.org/viewvc?view=rev&revision=1074
Author:   chpe
Date:     2012-10-16 16:54:47 +0100 (Tue, 16 Oct 2012)


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

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


Modified: code/trunk/pcre_compile.c
===================================================================
--- code/trunk/pcre_compile.c    2012-10-16 15:54:43 UTC (rev 1073)
+++ code/trunk/pcre_compile.c    2012-10-16 15:54:47 UTC (rev 1074)
@@ -2755,7 +2755,7 @@
 while (posix_name_lengths[yield] != 0)
   {
   if (len == posix_name_lengths[yield] &&
-    STRNCMP_UC_C8(ptr, pn, len) == 0) return yield;
+    STRNCMP_UC_C8(ptr, pn, (unsigned int)len) == 0) return yield;
   pn += posix_name_lengths[yield] + 1;
   yield++;
   }