[Pcre-svn] [1095] code/trunk/pcre_study.c: pcre32: study: Us…

Kezdőlap
Üzenet törlése
Szerző: Subversion repository
Dátum:  
Címzett: pcre-svn
Tárgy: [Pcre-svn] [1095] code/trunk/pcre_study.c: pcre32: study: Use uint32 for characters
Revision: 1095
          http://vcs.pcre.org/viewvc?view=rev&revision=1095
Author:   chpe
Date:     2012-10-16 16:56:05 +0100 (Tue, 16 Oct 2012)


Log Message:
-----------
pcre32: study: Use uint32 for characters

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


Modified: code/trunk/pcre_study.c
===================================================================
--- code/trunk/pcre_study.c    2012-10-16 15:56:02 UTC (rev 1094)
+++ code/trunk/pcre_study.c    2012-10-16 15:56:05 UTC (rev 1095)
@@ -635,7 +635,7 @@
 set_type_bits(pcre_uint8 *start_bits, int cbit_type, int table_limit,
   compile_data *cd)
 {
-register int c;
+register pcre_uint32 c;
 for (c = 0; c < table_limit; c++) start_bits[c] |= cd->cbits[c+cbit_type];
 #if defined SUPPORT_UTF && defined COMPILE_PCRE8
 if (table_limit == 32) return;
@@ -677,7 +677,7 @@
 set_nottype_bits(pcre_uint8 *start_bits, int cbit_type, int table_limit,
   compile_data *cd)
 {
-register int c;
+register pcre_uint32 c;
 for (c = 0; c < table_limit; c++) start_bits[c] |= ~cd->cbits[c+cbit_type];
 #if defined SUPPORT_UTF && defined COMPILE_PCRE8
 if (table_limit != 32) for (c = 24; c < 32; c++) start_bits[c] = 0xff;
@@ -714,7 +714,7 @@
 set_start_bits(const pcre_uchar *code, pcre_uint8 *start_bits, BOOL utf,
   compile_data *cd)
 {
-register int c;
+register pcre_uint32 c;
 int yield = SSB_DONE;
 #if defined SUPPORT_UTF && defined COMPILE_PCRE8
 int table_limit = utf? 16:32;