Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed warning

  • Loading branch information...
commit c33db5c74efb253939f574cf64ecc71fd60e0d5b 1 parent e0de453
Dmitry Stogov authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 Zend/zend_execute.h
View
6 Zend/zend_execute.h
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.