mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
C++ doesn't allow implicitly convert void * to other pointer type
This commit is contained in:
parent
2f574e282e
commit
7614fe810e
1 changed files with 1 additions and 1 deletions
|
@ -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); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue