summaryrefslogtreecommitdiff
path: root/pcre_study.c
diff options
context:
space:
mode:
authorchpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-10-16 15:56:05 +0000
committerchpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-10-16 15:56:05 +0000
commit107910c04bcc49e151e2c262e587e69723c75588 (patch)
tree00f7fd36ac077c00f2d96e9727ebad0d916e734a /pcre_study.c
parentc7e29b79e970ada85f6c76b7f0587b26fad6ea97 (diff)
downloadpcre-107910c04bcc49e151e2c262e587e69723c75588.tar.gz
pcre32: study: Use uint32 for characters
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1095 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_study.c')
-rw-r--r--pcre_study.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pcre_study.c b/pcre_study.c
index 86f03c6..a9a93e2 100644
--- a/pcre_study.c
+++ b/pcre_study.c
@@ -635,7 +635,7 @@ static void
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 @@ static void
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 @@ static int
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;