From: Derick Rethans Date: Mon, 29 Nov 2004 09:39:57 +0000 (+0000) Subject: - MF43: Revert Joe's work around a bug in GCC patch as it breaks too many things. X-Git-Tag: php-5.0.3RC1~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96cae711b9ece8857e91881b194a9b9b41837676;p=php - MF43: Revert Joe's work around a bug in GCC patch as it breaks too many things. --- diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index d628073c95..126fc4bc57 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -184,15 +184,7 @@ ZEND_API void convert_scalar_to_number(zval *op TSRMLS_DC) } -#define DVAL_TO_LVAL(d, l) do { \ - if ((d) >= LONG_MAX) { \ - l = LONG_MAX; \ - } else if ((d) < LONG_MIN) { \ - l = LONG_MIN; \ - } else { \ - l = (d); \ - } \ -} while (0) +#define DVAL_TO_LVAL(d, l) (l) = (d) > LONG_MAX ? (unsigned long) (d) : (long) (d) #define zendi_convert_to_long(op, holder, result) \ if (op==result) { \