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/php_mbregex.c | |
| parent | 52d5287d9a1ec69883bd2a581103d80f02ebe534 (diff) | |
| download | php-git-9225429040fa74e14f1789788c5b6a7c547557d3.tar.gz | |
- MFH: 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 f1328cf1dd..0e541f6b41 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -928,7 +928,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) { @@ -1021,7 +1021,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)  	char *arg_pattern, *arg_options;  	int arg_pattern_len, arg_options_len;  	OnigSyntaxType *syntax = NULL; -	int option; +	OnigOptionType option;  	if (zend_parse_parameters(argc TSRMLS_CC, "z|ss", &arg_str, &arg_pattern, &arg_pattern_len, &arg_options, &arg_options_len) == FAILURE) {  		return; | 
