diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-09-16 15:01:14 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-09-16 15:01:14 +0200 |
commit | 8c0c06da860ddc874dd030485e3a66fd017c1334 (patch) | |
tree | c0725fb565324dc18b73c2eabac723f6cbd4b020 /Zend | |
parent | 145ffd93fcac5fc04ae50464a34bc5e14fccc203 (diff) | |
parent | 8a11f1284e48506a9cb561ee63bd1cf19470b539 (diff) | |
download | php-git-8c0c06da860ddc874dd030485e3a66fd017c1334.tar.gz |
Merge branch 'PHP-7.3' into PHP-7.4
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/zend_operators.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h index 69f91c0225..9307bb8854 100644 --- a/Zend/zend_operators.h +++ b/Zend/zend_operators.h @@ -87,10 +87,10 @@ ZEND_API const char* ZEND_FASTCALL zend_memnstr_ex(const char *haystack, const c ZEND_API const char* ZEND_FASTCALL zend_memnrstr_ex(const char *haystack, const char *needle, size_t needle_len, const char *end); #if SIZEOF_ZEND_LONG == 4 -# define ZEND_DOUBLE_FITS_LONG(d) (!((d) > ZEND_LONG_MAX || (d) < ZEND_LONG_MIN)) +# define ZEND_DOUBLE_FITS_LONG(d) (!((d) > (double)ZEND_LONG_MAX || (d) < (double)ZEND_LONG_MIN)) #else /* >= as (double)ZEND_LONG_MAX is outside signed range */ -# define ZEND_DOUBLE_FITS_LONG(d) (!((d) >= ZEND_LONG_MAX || (d) < ZEND_LONG_MIN)) +# define ZEND_DOUBLE_FITS_LONG(d) (!((d) >= (double)ZEND_LONG_MAX || (d) < (double)ZEND_LONG_MIN)) #endif #if ZEND_DVAL_TO_LVAL_CAST_OK |