diff options
author | ideal <idealities@gmail.com> | 2017-06-21 13:16:05 +0800 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-06-23 13:31:23 +0200 |
commit | 4d6100569b7611ef66086bec96fe8b5046e30ef7 (patch) | |
tree | d1428741cf3154e9b4e168f1e56bf096c493cd7f /ext/standard/php_smart_string.h | |
parent | b255b97e43a50897f8ba7b9fbc8ed0acbf436aea (diff) | |
download | php-git-4d6100569b7611ef66086bec96fe8b5046e30ef7.tar.gz |
Fix error if compiled without -fpermissive flag.
Diffstat (limited to 'ext/standard/php_smart_string.h')
-rw-r--r-- | ext/standard/php_smart_string.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) { \ |