com php-src: Fixed compilation warnings (issue #92): ext/opcache/Optimizer/zend_optimizer_internal.h
| From: | Dmitry Stogov | Date: | Mon, 29 Apr 2013 06:32:08 +0000 |
| Subject: | com php-src: Fixed compilation warnings (issue #92): ext/opcache/Optimizer/zend_optimizer_internal.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-72059@lists.php.net to get a copy of this message | ||
Commit: a5b4eeb5f02084e10913153a4dc5888ce4b43925
Author: Dmitry Stogov <dmitry@zend.com> Mon, 29 Apr 2013 10:32:08 +0400
Parents: 8a51bdd3cebf4bb2f49090560da918f70a535ade
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a5b4eeb5f02084e10913153a4dc5888ce4b43925
Log:
Fixed compilation warnings (issue #92)
Bugs:
https://bugs.php.net/92
Changed paths:
M ext/opcache/Optimizer/zend_optimizer_internal.h
Diff:
diff --git a/ext/opcache/Optimizer/zend_optimizer_internal.h
b/ext/opcache/Optimizer/zend_optimizer_internal.h
index 0097496..a9bad01 100644
--- a/ext/opcache/Optimizer/zend_optimizer_internal.h
+++ b/ext/opcache/Optimizer/zend_optimizer_internal.h
@@ -26,7 +26,7 @@
#if ZEND_EXTENSION_API_NO > PHP_5_4_X_API_NO
# define VAR_NUM(v) ((zend_uint)(EX_TMP_VAR_NUM(0, 0) - EX_TMP_VAR(0, v)))
-# define NUM_VAR(v) ((zend_uint)EX_TMP_VAR_NUM(0, v))
+# define NUM_VAR(v) ((zend_uint)(zend_uintptr_t)EX_TMP_VAR_NUM(0, v))
#else
# define VAR_NUM(v) ((v)/(sizeof(temp_variable)))
# define NUM_VAR(v) ((v)*(sizeof(temp_variable)))