mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Use SIZEOF_ZEND_LONG instead of SIZEOF_LONG
This commit is contained in:
parent
676ed04d0d
commit
be88d0e5d4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user