summaryrefslogtreecommitdiff
path: root/ext/mbstring/mbstring.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mbstring/mbstring.c')
-rw-r--r--ext/mbstring/mbstring.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c
index d1904746ff..05dbbcd26a 100644
--- a/ext/mbstring/mbstring.c
+++ b/ext/mbstring/mbstring.c
@@ -2425,7 +2425,7 @@ PHP_FUNCTION(mb_strripos)
RETURN_FALSE;
}
- if (offset > haystack.len) {
+ if ((unsigned int)offset > haystack.len) {
RETURN_FALSE;
}
@@ -2833,11 +2833,11 @@ PHP_FUNCTION(mb_strcut)
}
}
- if (from > string.len) {
+ if ((unsigned int)from > string.len) {
RETURN_FALSE;
}
- if (((unsigned) from + (unsigned) len) > string.len) {
+ if (((unsigned int)from + (unsigned int)len) > string.len) {
len = string.len - from;
}
@@ -3219,7 +3219,7 @@ PHP_FUNCTION(mb_detect_encoding)
}
if (ZEND_NUM_ARGS() < 3) {
- strict = MBSTRG(strict_detection);
+ strict = (zend_bool)MBSTRG(strict_detection);
}
if (size > 0 && list != NULL) {