summaryrefslogtreecommitdiff
path: root/ext/standard/php_smart_string.h
diff options
context:
space:
mode:
authorideal <idealities@gmail.com>2017-06-21 13:16:05 +0800
committerNikita Popov <nikita.ppv@gmail.com>2017-06-23 13:31:23 +0200
commit4d6100569b7611ef66086bec96fe8b5046e30ef7 (patch)
treed1428741cf3154e9b4e168f1e56bf096c493cd7f /ext/standard/php_smart_string.h
parentb255b97e43a50897f8ba7b9fbc8ed0acbf436aea (diff)
downloadphp-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.h2
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) { \