From 4d6100569b7611ef66086bec96fe8b5046e30ef7 Mon Sep 17 00:00:00 2001 From: ideal Date: Wed, 21 Jun 2017 13:16:05 +0800 Subject: Fix error if compiled without -fpermissive flag. --- ext/standard/php_smart_string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/standard') diff --git a/ext/standard/php_smart_string.h b/ext/standard/php_smart_string.h index 96b826625b..45e0146691 100644 --- a/ext/standard/php_smart_string.h +++ b/ext/standard/php_smart_string.h @@ -50,7 +50,7 @@ #endif #define SMART_STRING_DO_REALLOC(d, what) \ - (d)->c = SMART_STRING_REALLOC((d)->c, (d)->a + 1, (what)) + (d)->c = (char *) SMART_STRING_REALLOC((d)->c, (d)->a + 1, (what)) #define smart_string_alloc4(d, n, what, newlen) do { \ if (!(d)->c) { \ -- cgit v1.2.1