Skip to content

Commit

Permalink
Fixed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Mar 12, 2008
1 parent e0de453 commit c33db5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Zend/zend_execute.h
Expand Up @@ -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)

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c33db5c

Please sign in to comment.