[Pcre-svn] [1144] code/trunk/pcre_dfa_exec.c: Clean up compi…

Kezdőlap
Üzenet törlése
Szerző: Subversion repository
Dátum:  
Címzett: pcre-svn
Tárgy: [Pcre-svn] [1144] code/trunk/pcre_dfa_exec.c: Clean up compiler warnings in pcre_dfa_exec.c in all modes.
Revision: 1144
          http://vcs.pcre.org/viewvc?view=rev&revision=1144
Author:   ph10
Date:     2012-10-19 17:19:55 +0100 (Fri, 19 Oct 2012)


Log Message:
-----------
Clean up compiler warnings in pcre_dfa_exec.c in all modes.

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


Modified: code/trunk/pcre_dfa_exec.c
===================================================================
--- code/trunk/pcre_dfa_exec.c    2012-10-19 16:14:27 UTC (rev 1143)
+++ code/trunk/pcre_dfa_exec.c    2012-10-19 16:19:55 UTC (rev 1144)
@@ -635,7 +635,8 @@
     BOOL caseless = FALSE;
     const pcre_uchar *code;
     int state_offset = current_state->offset;
-    int count, codevalue, rrc;
+    int codevalue, rrc;
+    unsigned int count;


 #ifdef PCRE_DEBUG
     printf ("%.*sProcessing state %d c=", rlevel*2-2, SP, state_offset);
@@ -2532,7 +2533,7 @@
             { ADD_ACTIVE(next_state_offset + 1 + 2 * IMM2_SIZE, 0); }
           if (isinclass)
             {
-            int max = GET2(ecode, 1 + IMM2_SIZE);
+            unsigned int max = GET2(ecode, 1 + IMM2_SIZE);
             if (++count >= max && max != 0)   /* Max 0 => no limit */
               { ADD_NEW(next_state_offset + 1 + 2 * IMM2_SIZE, 0); }
             else