com php-src: fixed decrement: Zend/zend_operators.h
| From: | Anatol Belski | Date: | Wed, 16 Oct 2013 10:14:25 +0000 |
| Subject: | com php-src: fixed decrement: Zend/zend_operators.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73448@lists.php.net to get a copy of this message | ||
Commit: 983db235b0a6b36a65df808576d25ecb4c6b48ad
Author: Anatol Belski <ab@php.net> Mon, 26 Aug 2013 07:31:10 -0700
Parents: 582f52c1733138637073bee0f31e0fbdd5affac7
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=983db235b0a6b36a65df808576d25ecb4c6b48ad
Log:
fixed decrement
Changed paths:
M Zend/zend_operators.h
Diff:
diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h
index fb1123d..03fbce2 100644
--- a/Zend/zend_operators.h
+++ b/Zend/zend_operators.h
@@ -587,9 +587,9 @@ static zend_always_inline int fast_decrement_function(zval *op1)
"n"(ZVAL_OFFSETOF_TYPE)
: "cc");
#else
- if (UNEXPECTED(Z_LVAL_P(op1) == LONG_MIN)) {
+ if (UNEXPECTED(Z_LVAL_P(op1) == ZEND_INT_MIN)) {
/* switch to double */
- Z_DVAL_P(op1) = (double)LONG_MIN - 1.0;
+ Z_DVAL_P(op1) = (double)ZEND_INT_MIN - 1.0;
Z_TYPE_P(op1) = IS_DOUBLE;
} else {
Z_LVAL_P(op1)--;