diff options
| author | Moriyoshi Koizumi <moriyoshi@php.net> | 2008-07-25 14:04:39 +0000 |
|---|---|---|
| committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2008-07-25 14:04:39 +0000 |
| commit | de0e9cea83700385deb066b2e0bdcdb450df3ae9 (patch) | |
| tree | 37f31fc183eba6bf39b2b11b391376955a09511a /ext/mbstring/php_mbregex.c | |
| parent | 86e8d7ebf10156fee3c1ab827d722944c0754174 (diff) | |
| download | php-git-de0e9cea83700385deb066b2e0bdcdb450df3ae9.tar.gz | |
- Fix warnings
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
| -rw-r--r-- | ext/mbstring/php_mbregex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index c15330346f..6509079fa5 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -921,7 +921,7 @@ static void _php_mb_regex_ereg_replace_exec(INTERNAL_FUNCTION_PARAMETERS, OnigOp zval_dtor(&v); } n = regs->end[0]; - if ((size_t)(pos - (OnigUChar *)string) < n) { + if ((pos - (OnigUChar *)string) < n) { pos = (OnigUChar *)string + n; } else { if (pos < string_lim) { @@ -1014,7 +1014,7 @@ PHP_FUNCTION(mb_split) } /* add it to the array */ - if (regs->beg[0] < string_len && regs->beg[0] >= (size_t)(pos - (OnigUChar *)string)) { + if (regs->beg[0] < string_len && regs->beg[0] >= (pos - (OnigUChar *)string)) { add_next_index_stringl(return_value, (char *)pos, ((OnigUChar *)(string + regs->beg[0]) - pos), 1); } else { err = -2; @@ -1246,7 +1246,7 @@ PHP_FUNCTION(mb_ereg_search_init) { zval **arg_str, **arg_pattern, **arg_options; OnigSyntaxType *syntax = NULL; - int option; + OnigOptionType option; option = MBREX(regex_default_options); syntax = MBREX(regex_default_syntax); |
