summaryrefslogtreecommitdiff
path: root/pcre_compile.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-12-08 12:43:37 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-12-08 12:43:37 +0000
commit75898917f98f29cc671184d9486c81260fddad71 (patch)
tree8b64326397ab5b89479875be859878563f033070 /pcre_compile.c
parent4623038deddf118a1de9674bd7d8dc1f2a28bb3b (diff)
downloadpcre-75898917f98f29cc671184d9486c81260fddad71.tar.gz
Fix some Microsoft compiler warnings.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1233 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_compile.c')
-rw-r--r--pcre_compile.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/pcre_compile.c b/pcre_compile.c
index 5db8a41..f4ab3c8 100644
--- a/pcre_compile.c
+++ b/pcre_compile.c
@@ -847,11 +847,11 @@ else
}
#if defined COMPILE_PCRE8
- if (c > (utf ? 0x10ffff : 0xff))
+ if (c > (utf ? 0x10ffffU : 0xffU))
#elif defined COMPILE_PCRE16
- if (c > (utf ? 0x10ffff : 0xffff))
+ if (c > (utf ? 0x10ffffU : 0xffffU))
#elif defined COMPILE_PCRE32
- if (utf && c > 0x10ffff)
+ if (utf && c > 0x10ffffU)
#endif
{
*errorcodeptr = ERR76;
@@ -1085,11 +1085,11 @@ else
#endif
#if defined COMPILE_PCRE8
- if (c > (utf ? 0x10ffff : 0xff)) { overflow = TRUE; break; }
+ if (c > (utf ? 0x10ffffU : 0xffU)) { overflow = TRUE; break; }
#elif defined COMPILE_PCRE16
- if (c > (utf ? 0x10ffff : 0xffff)) { overflow = TRUE; break; }
+ if (c > (utf ? 0x10ffffU : 0xffffU)) { overflow = TRUE; break; }
#elif defined COMPILE_PCRE32
- if (utf && c > 0x10ffff) { overflow = TRUE; break; }
+ if (utf && c > 0x10ffffU) { overflow = TRUE; break; }
#endif
}