1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 15:12:39 +02:00

Fixed warning

This commit is contained in:
Dmitry Stogov
2008-03-12 08:52:49 +00:00
parent e0de453954
commit c33db5c74e

View File

@@ -154,9 +154,9 @@ struct _zend_vm_stack {
#define ZEND_VM_STACK_GROW_IF_NEEDED(count) \
do { \
if (UNEXPECTED(count > \
if (UNEXPECTED((count) > \
EG(argument_stack)->end - EG(argument_stack)->top)) { \
zend_vm_stack_extend(count TSRMLS_CC); \
zend_vm_stack_extend((count) TSRMLS_CC); \
} \
} while (0)
@@ -226,7 +226,7 @@ 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);
ZEND_VM_STACK_GROW_IF_NEEDED((int)size);
ret = (void*)EG(argument_stack)->top;
EG(argument_stack)->top += size;
return ret;