diff options
author | Dmitry Stogov <dmitry@php.net> | 2008-01-29 11:12:07 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2008-01-29 11:12:07 +0000 |
commit | e0ca3b2424f475fc940865ca8e8c011c498ec314 (patch) | |
tree | 1611ea9816040024fdcd3001b5fb592b9bbbf8f5 /Zend/zend_execute.h | |
parent | 382f1dddfaa60707eb376c8904a54ef043132099 (diff) | |
download | php-git-e0ca3b2424f475fc940865ca8e8c011c498ec314.tar.gz |
Fixed types
Diffstat (limited to 'Zend/zend_execute.h')
-rw-r--r-- | Zend/zend_execute.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_execute.h b/Zend/zend_execute.h index e172e09e72..3f7efcb248 100644 --- a/Zend/zend_execute.h +++ b/Zend/zend_execute.h @@ -227,20 +227,20 @@ static inline void *zend_vm_stack_alloc(size_t size TSRMLS_DC) size = (size + (sizeof(void*) - 1)) / sizeof(void*); ZEND_VM_STACK_GROW_IF_NEEDED(size); - ret = EG(argument_stack)->top; + ret = (void*)EG(argument_stack)->top; EG(argument_stack)->top += size; return ret; } static inline void zend_vm_stack_free(void *ptr TSRMLS_DC) { - if (UNEXPECTED(EG(argument_stack)->elements == ptr)) { + if (UNEXPECTED(EG(argument_stack)->elements == (void**)ptr)) { zend_vm_stack p = EG(argument_stack); EG(argument_stack) = p->prev; efree(p); } else { - EG(argument_stack)->top = ptr; + EG(argument_stack)->top = (void**)ptr; } } |