summaryrefslogtreecommitdiff
path: root/ext/intl/grapheme/grapheme_util.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2016-06-22 00:40:50 +0300
committerDmitry Stogov <dmitry@zend.com>2016-06-22 00:40:50 +0300
commit323b2733f6b42d00dd86e77ac524d64f6ddc4e22 (patch)
tree49c72ac7d1e6077369f1de6a5d7a6d7847e51bf9 /ext/intl/grapheme/grapheme_util.c
parent4ccbe03e445800d26aba5424a84e64e235f08ece (diff)
downloadphp-git-323b2733f6b42d00dd86e77ac524d64f6ddc4e22.tar.gz
Fixed compilation warnings
Diffstat (limited to 'ext/intl/grapheme/grapheme_util.c')
-rw-r--r--ext/intl/grapheme/grapheme_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/intl/grapheme/grapheme_util.c b/ext/intl/grapheme/grapheme_util.c
index b590631c72..042092ea59 100644
--- a/ext/intl/grapheme/grapheme_util.c
+++ b/ext/intl/grapheme/grapheme_util.c
@@ -345,7 +345,7 @@ grapheme_strrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t
e = haystack + haystack_len - needle_len;
} else {
p = haystack;
- if (needle_len > -offset) {
+ if (needle_len > (size_t)-offset) {
e = haystack + haystack_len - needle_len;
} else {
e = haystack + haystack_len + offset;