Skip to content

Commit 8c0c06d

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
2 parents 145ffd9 + 8a11f12 commit 8c0c06d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_operators.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ ZEND_API const char* ZEND_FASTCALL zend_memnstr_ex(const char *haystack, const c
8787
ZEND_API const char* ZEND_FASTCALL zend_memnrstr_ex(const char *haystack, const char *needle, size_t needle_len, const char *end);
8888

8989
#if SIZEOF_ZEND_LONG == 4
90-
# define ZEND_DOUBLE_FITS_LONG(d) (!((d) > ZEND_LONG_MAX || (d) < ZEND_LONG_MIN))
90+
# define ZEND_DOUBLE_FITS_LONG(d) (!((d) > (double)ZEND_LONG_MAX || (d) < (double)ZEND_LONG_MIN))
9191
#else
9292
/* >= as (double)ZEND_LONG_MAX is outside signed range */
93-
# define ZEND_DOUBLE_FITS_LONG(d) (!((d) >= ZEND_LONG_MAX || (d) < ZEND_LONG_MIN))
93+
# define ZEND_DOUBLE_FITS_LONG(d) (!((d) >= (double)ZEND_LONG_MAX || (d) < (double)ZEND_LONG_MIN))
9494
#endif
9595

9696
#if ZEND_DVAL_TO_LVAL_CAST_OK

0 commit comments

Comments
 (0)