From: ideal Date: Wed, 21 Jun 2017 05:16:05 +0000 (+0800) Subject: Fix error if compiled without -fpermissive flag. X-Git-Tag: php-7.0.22RC1~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d6100569b7611ef66086bec96fe8b5046e30ef7;p=php Fix error if compiled without -fpermissive flag. --- 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) { \