diff options
author | Anatol Belski <ab@php.net> | 2017-07-28 22:18:51 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2017-07-28 22:18:51 +0200 |
commit | f9c3ee9ae8a41e2f47101c638491abd36ed09ce3 (patch) | |
tree | 3079221865b569532e883021223ecc3b4cdd20df /ext/mbstring/php_unicode.c | |
parent | 853e73fb8e70f7d4a74d3a90f2d981da09b21640 (diff) | |
download | php-git-f9c3ee9ae8a41e2f47101c638491abd36ed09ce3.tar.gz |
fix c89 compat
Diffstat (limited to 'ext/mbstring/php_unicode.c')
-rw-r--r-- | ext/mbstring/php_unicode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mbstring/php_unicode.c b/ext/mbstring/php_unicode.c index 71541a8372..3b928bcebb 100644 --- a/ext/mbstring/php_unicode.c +++ b/ext/mbstring/php_unicode.c @@ -311,7 +311,7 @@ static int convert_case_filter(int c, void *void_data) { struct convert_case_data *data = (struct convert_case_data *) void_data; unsigned out[3]; - unsigned len; + unsigned len, i; switch (data->case_mode) { case PHP_UNICODE_CASE_UPPER_SIMPLE: out[0] = php_unicode_toupper_simple(c, data->no_encoding); @@ -368,7 +368,7 @@ static int convert_case_filter(int c, void *void_data) break; } - for (unsigned i = 0; i < len; i++) { + for (i = 0; i < len; i++) { (*data->next_filter->filter_function)(out[i], data->next_filter); } return 0; |