C++ doesn't allow implicitly convert void * to other pointer type

This commit is contained in:
Xinchen Hui 2014-06-28 11:19:38 +08:00
parent 2f574e282e
commit 7614fe810e

View File

@ -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); \