summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-09-16 15:01:05 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-09-16 15:01:05 +0200
commit8a11f1284e48506a9cb561ee63bd1cf19470b539 (patch)
treec4c69078f363ad617d1fcfa20490dc0975876c25 /Zend
parent74876f09c4198200cef26f23dde6db58bcf1ddc3 (diff)
parent2f6efd835d794222d42196ae51fa8294f9b9a992 (diff)
downloadphp-git-8a11f1284e48506a9cb561ee63bd1cf19470b539.tar.gz
Merge branch 'PHP-7.2' into PHP-7.3
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend_operators.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h
index e7b94d16bc..aa73a969e2 100644
--- a/Zend/zend_operators.h
+++ b/Zend/zend_operators.h
@@ -90,10 +90,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