Skip to content

Commit 8a11f12

Browse files
committed
Merge branch 'PHP-7.2' into PHP-7.3
2 parents 74876f0 + 2f6efd8 commit 8a11f12

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
@@ -90,10 +90,10 @@ ZEND_API const char* ZEND_FASTCALL zend_memnstr_ex(const char *haystack, const c
9090
ZEND_API const char* ZEND_FASTCALL zend_memnrstr_ex(const char *haystack, const char *needle, size_t needle_len, const char *end);
9191

9292
#if SIZEOF_ZEND_LONG == 4
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
#else
9595
/* >= as (double)ZEND_LONG_MAX is outside signed range */
96-
# define ZEND_DOUBLE_FITS_LONG(d) (!((d) >= ZEND_LONG_MAX || (d) < ZEND_LONG_MIN))
96+
# define ZEND_DOUBLE_FITS_LONG(d) (!((d) >= (double)ZEND_LONG_MAX || (d) < (double)ZEND_LONG_MIN))
9797
#endif
9898

9999
#if ZEND_DVAL_TO_LVAL_CAST_OK

0 commit comments

Comments
 (0)