We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ce005c0 + e67a2b9 commit dc47ec0Copy full SHA for dc47ec0
Zend/zend_operators.h
@@ -79,7 +79,8 @@ static zend_always_inline long zend_dval_to_lval(double d)
79
#else
80
static zend_always_inline long zend_dval_to_lval(double d)
81
{
82
- if (d > LONG_MAX) {
+ /* >= as (double)LONG_MAX is outside signed range */
83
+ if (d >= LONG_MAX) {
84
return (long)(unsigned long) d;
85
}
86
return (long) d;
0 commit comments