From f9c3ee9ae8a41e2f47101c638491abd36ed09ce3 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Fri, 28 Jul 2017 22:18:51 +0200 Subject: fix c89 compat --- ext/mbstring/php_unicode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/mbstring/php_unicode.c') 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; -- cgit v1.2.1