Skip to content

Commit 6e703c9

Browse files
committed
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1: fix double cast to int on 32-bit
2 parents fd5a453 + c172927 commit 6e703c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_operators.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3108,7 +3108,7 @@ ZEND_API zend_long ZEND_FASTCALL zend_dval_to_lval_slow(double d)
31083108
if (dmod < 0) {
31093109
/* we're going to make this number positive; call ceil()
31103110
* to simulate rounding towards 0 of the negative number */
3111-
dmod = ceil(dmod);// + two_pow_32;
3111+
dmod = ceil(dmod) + two_pow_32;
31123112
}
31133113
return (zend_long)(zend_ulong)dmod;
31143114
}

0 commit comments

Comments
 (0)