com php-src: fixed decrement: Zend/zend_operators.h

From: Date: Mon, 26 Aug 2013 14:31:10 +0000
Subject: com php-src: fixed decrement: Zend/zend_operators.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-73578@lists.php.net to get a copy of this message
Commit: b8213906ff08234092f00c51143e26c4cee3c45b Author: Anatol Belski <ab@php.net> Mon, 26 Aug 2013 07:31:10 -0700 Parents: 4b484e0278ec426e43b8d4794bd4276f16797e73 Branches: str_size_and_int64 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b8213906ff08234092f00c51143e26c4cee3c45b Log: fixed decrement Changed paths: M Zend/zend_operators.h Diff: diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h index 29713e5..2db8777 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)--;

« previous php.cvs (#73578) next »