cvs: ZendEngine2(PHP_5_3) / zend_execute.h

[email protected] ("Dmitry Stogov")
Newsgroups php.zend-engine.cvs
Message-ID <cvsdmitry1205311969@cvsserver>
dmitry		Wed Mar 12 08:52:49 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /ZendEngine2	zend_execute.h 
  Log:
  Fixed warning
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_execute.h?r1=1.84.2.4.2.8.2.5&r2=1.84.2.4.2.8.2.6&diff_format=u
Index: ZendEngine2/zend_execute.h
diff -u ZendEngine2/zend_execute.h:1.84.2.4.2.8.2.5 ZendEngine2/zend_execute.h:1.84.2.4.2.8.2.6
--- ZendEngine2/zend_execute.h:1.84.2.4.2.8.2.5	Tue Jan 29 11:12:07 2008
+++ ZendEngine2/zend_execute.h	Wed Mar 12 08:52:49 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_execute.h,v 1.84.2.4.2.8.2.5 2008/01/29 11:12:07 dmitry Exp $ */
+/* $Id: zend_execute.h,v 1.84.2.4.2.8.2.6 2008/03/12 08:52:49 dmitry Exp $ */
 
 #ifndef ZEND_EXECUTE_H
 #define ZEND_EXECUTE_H
@@ -154,9 +154,9 @@
 
 #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 @@
 
 	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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.