diff options
author | Xinchen Hui <laruence@php.net> | 2014-06-28 11:19:38 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2014-06-28 11:19:38 +0800 |
commit | 7614fe810eba7ce16f100c2c9e592922fd9e739c (patch) | |
tree | c093e8a794d32a41785c27b9bfd50a94207e8b89 | |
parent | 2f574e282e40874dfb8a03826a8c3c8576911bb2 (diff) | |
download | php-git-7614fe810eba7ce16f100c2c9e592922fd9e739c.tar.gz |
C++ doesn't allow implicitly convert void * to other pointer type
-rw-r--r-- | Zend/zend_string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_string.h b/Zend/zend_string.h index 5765188e2a..6a24c5d5e9 100644 --- a/Zend/zend_string.h +++ b/Zend/zend_string.h @@ -57,7 +57,7 @@ END_EXTERN_C() #define _STR_HEADER_SIZE XtOffsetOf(zend_string, val) #define STR_ALLOCA_ALLOC(str, _len, use_heap) do { \ - (str) = do_alloca(_STR_HEADER_SIZE + (_len) + 1, (use_heap)); \ + (str) = (zend_string *)do_alloca(_STR_HEADER_SIZE + (_len) + 1, (use_heap)); \ GC_REFCOUNT(str) = 1; \ (str)->h = 0; \ (str)->len = (_len); \ |