diff options
| author | Moriyoshi Koizumi <moriyoshi@php.net> | 2008-07-25 14:04:54 +0000 |
|---|---|---|
| committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2008-07-25 14:04:54 +0000 |
| commit | 9225429040fa74e14f1789788c5b6a7c547557d3 (patch) | |
| tree | 3e4b935d5811a0717c51dc47045dfa9c87f42447 /ext/mbstring/mbstring.c | |
| parent | 52d5287d9a1ec69883bd2a581103d80f02ebe534 (diff) | |
| download | php-git-9225429040fa74e14f1789788c5b6a7c547557d3.tar.gz | |
- MFH: Fix warnings
Diffstat (limited to 'ext/mbstring/mbstring.c')
| -rw-r--r-- | ext/mbstring/mbstring.c | 8 |
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) { |
