com php-src: Use SIZEOF_ZEND_LONG instead of SIZEOF _LONG: Zend/zend_operators.c
| From: | ajf@php.net | Date: | Tue, 16 Sep 2014 09:24:33 +0000 |
| Subject: | com php-src: Use SIZEOF_ZEND_LONG instead of SIZEOF _LONG: Zend/zend_operators.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81831@lists.php.net to get a copy of this message | ||
Commit: be88d0e5d4ab5fdf775f3e38cf054aa0451f0d36
Author: Andrea Faulds <ajf@ajf.me> Tue, 16 Sep 2014 10:24:33 +0100
Parents: 676ed04d0df2df67efdf93076370a10e4d457965
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=be88d0e5d4ab5fdf775f3e38cf054aa0451f0d36
Log:
Use SIZEOF_ZEND_LONG instead of SIZEOF_LONG
Changed paths:
M Zend/zend_operators.c
Diff:
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c
index 61bdbc8..ce47c26 100644
--- a/Zend/zend_operators.c
+++ b/Zend/zend_operators.c
@@ -1494,7 +1494,7 @@ ZEND_API int shift_left_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
/
}
/* prevent wrapping quirkiness on some processors where << 64 + x == << x */
- if (Z_LVAL_P(op2) >= SIZEOF_LONG * 8) {
+ if (Z_LVAL_P(op2) >= SIZEOF_ZEND_LONG * 8) {
ZVAL_LONG(result, 0);
return SUCCESS;
}
@@ -1526,7 +1526,7 @@ ZEND_API int shift_right_function(zval *result, zval *op1, zval *op2
TSRMLS_DC)
}
/* prevent wrapping quirkiness on some processors where >> 64 + x == >> x */
- if (Z_LVAL_P(op2) >= SIZEOF_LONG * 8) {
+ if (Z_LVAL_P(op2) >= SIZEOF_ZEND_LONG * 8) {
ZVAL_LONG(result, (Z_LVAL_P(op1) < 0) ? -1 : 0);
return SUCCESS;
}