summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2016-11-17 14:05:22 +0300
committerDmitry Stogov <dmitry@zend.com>2016-11-17 14:05:22 +0300
commitc2173c16d038cf99c5eff12ddc76f99d46a35c57 (patch)
tree8afd1d59b6dcc3e57dcd231ae7b90a60244e46e9 /ext
parenta67637039f742a89201d085e561e906ebf74f1ae (diff)
downloadphp-git-c2173c16d038cf99c5eff12ddc76f99d46a35c57.tar.gz
Fixed 64-bit build
Diffstat (limited to 'ext')
-rw-r--r--ext/opcache/zend_accelerator_module.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/opcache/zend_accelerator_module.c b/ext/opcache/zend_accelerator_module.c
index 481660cb11..b6c8e13fd8 100644
--- a/ext/opcache/zend_accelerator_module.c
+++ b/ext/opcache/zend_accelerator_module.c
@@ -107,7 +107,7 @@ static ZEND_INI_MH(OnUpdateMemoryConsumption)
#else
char *base = (char *) ts_resource(*((int *) mh_arg2));
#endif
- zend_long overflow;
+ zend_long megabyte, overflow;
double dummy;
/* keep the compiler happy */
@@ -132,7 +132,8 @@ static ZEND_INI_MH(OnUpdateMemoryConsumption)
ini_entry->value = zend_string_init(new_new_value, 1, 1);
}
- ZEND_SIGNED_MULTIPLY_LONG(memsize, 1024 * 1024, *p, dummy, overflow);
+ megabyte = 1024 * 1024;
+ ZEND_SIGNED_MULTIPLY_LONG(memsize, megabyte, *p, dummy, overflow);
if (UNEXPECTED(overflow)) {
*p = ZEND_ULONG_MAX;
}