]> granicus.if.org Git - php/commitdiff
- Fixed warnings (Kalle)
authorFelipe Pena <felipe@php.net>
Sun, 13 Sep 2009 14:42:36 +0000 (14:42 +0000)
committerFelipe Pena <felipe@php.net>
Sun, 13 Sep 2009 14:42:36 +0000 (14:42 +0000)
Zend/zend_execute.h

index 5465890c09dfd2c3b1a71ee19b354744d76bbdc7..ed0912851ad3c051a4678f6121d6738e736f488a 100644 (file)
@@ -246,7 +246,7 @@ static inline void *zend_vm_stack_alloc(size_t size TSRMLS_DC)
                int extra = (ZEND_MM_ALIGNMENT - ((zend_uintptr_t)EG(argument_stack)->top & (ZEND_MM_ALIGNMENT - 1))) / sizeof(void*);
 
                if (UNEXPECTED(size + extra + ZEND_MM_ALIGNED_SIZE(sizeof(void*)) / sizeof(void*) >
-                   EG(argument_stack)->end - EG(argument_stack)->top)) {
+                   (zend_uintptr_t)EG(argument_stack)->end - (zend_uintptr_t)EG(argument_stack)->top)) {
                        zend_vm_stack_extend(size TSRMLS_CC);
                } else {
                        void **old_top = EG(argument_stack)->top;