summaryrefslogtreecommitdiff
path: root/pcre_ord2utf8.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-01-23 17:30:49 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-01-23 17:30:49 +0000
commit6d006dba3ccf59347e2eec0b2d60f6d4a1254a33 (patch)
treea7e364bd593a3a7e3a43b38697836ff8b1a87e7f /pcre_ord2utf8.c
parentec7abfc6da4749a0deda01d514b353a43bdf39db (diff)
downloadpcre-6d006dba3ccf59347e2eec0b2d60f6d4a1254a33.tar.gz
Additional casts to avoid compiler warnings, originally from a MS compiler, but
also given by gcc if you turn on enough warnings. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@904 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_ord2utf8.c')
-rw-r--r--pcre_ord2utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcre_ord2utf8.c b/pcre_ord2utf8.c
index 6865e14..50fca95 100644
--- a/pcre_ord2utf8.c
+++ b/pcre_ord2utf8.c
@@ -75,7 +75,7 @@ if ((cvalue & 0xf800) == 0xd800 || cvalue >= 0x110000)
cvalue = 0xfffe;
for (i = 0; i < PRIV(utf8_table1_size); i++)
- if (cvalue <= PRIV(utf8_table1)[i]) break;
+ if ((int)cvalue <= PRIV(utf8_table1)[i]) break;
buffer += i;
for (j = i; j > 0; j--)
{