summaryrefslogtreecommitdiff
path: root/pcreposix.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 /pcreposix.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 'pcreposix.c')
-rw-r--r--pcreposix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcreposix.c b/pcreposix.c
index 808c9da..c1a9d1c 100644
--- a/pcreposix.c
+++ b/pcreposix.c
@@ -274,7 +274,7 @@ should not happen, but we all make mistakes), return REG_BADPAT. */
if (preg->re_pcre == NULL)
{
- return (errorcode < sizeof(eint)/sizeof(const int))?
+ return (errorcode < (int)(sizeof(eint)/sizeof(const int)))?
eint[errorcode] : REG_BADPAT;
}