com php-src: Fix error if compiled without -fpermissive flag.: ext/standard/php_smart_string.h
| From: | Nikita Popov | Date: | Fri, 23 Jun 2017 11:31:23 +0000 |
| Subject: | com php-src: Fix error if compiled without -fpermissive flag.: ext/standard/php_smart_string.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98179@lists.php.net to get a copy of this message | ||
Commit: 4d6100569b7611ef66086bec96fe8b5046e30ef7
Author: ideal <idealities@gmail.com> Wed, 21 Jun 2017 13:16:05 +0800
Committer: Nikita Popov <nikita.ppv@gmail.com> Fri, 23 Jun 2017 13:31:23 +0200
Parents: b255b97e43a50897f8ba7b9fbc8ed0acbf436aea
Branches: PHP-7.0 PHP-7..1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4d6100569b7611ef66086bec96fe8b5046e30ef7
Log:
Fix error if compiled without -fpermissive flag.
Changed paths:
M ext/standard/php_smart_string.h
Diff:
diff --git a/ext/standard/php_smart_string.h b/ext/standard/php_smart_string.h
index 96b8266..45e0146 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) { \