mirror of
https://github.com/php/php-src.git
synced 2026-04-29 11:13:36 +02:00
- Small improvement to DVAL_TO_ZVAL macro
This commit is contained in:
@@ -184,7 +184,7 @@ ZEND_API void convert_scalar_to_number(zval *op TSRMLS_DC)
|
||||
|
||||
|
||||
#define DVAL_TO_LVAL(d, l) do { \
|
||||
if ((d) > LONG_MAX) { \
|
||||
if ((d) >= LONG_MAX) { \
|
||||
l = LONG_MAX; \
|
||||
} else if ((d) < LONG_MIN) { \
|
||||
l = LONG_MIN; \
|
||||
|
||||
Reference in New Issue
Block a user