From 777f23fd554b0811d16bc2323ced6fe9dc0cff72 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 17 Jan 2016 14:31:59 +0000 Subject: [PATCH] Fix compiler warnings --- pcre/pcre.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcre/pcre.c b/pcre/pcre.c index 1297ed99..1e602df4 100644 --- a/pcre/pcre.c +++ b/pcre/pcre.c @@ -3013,12 +3013,12 @@ while ((c = *(++ptr)) != 0) runlength++; - if (ptr > pattern + pattern_length) + if ((const char *)ptr > pattern + pattern_length) { *errorptr = "internal error"; goto PCRE_ERROR_RETURN; } - if (ptr[1] >= tables_length - ctypes_offset) + if ((int)ptr[1] >= tables_length - ctypes_offset) { *errorptr = ERR6; goto PCRE_ERROR_RETURN; -- 2.39.2