Skip to content

Commit c172927

Browse files
committed
fix double cast to int on 32-bit
1 parent 709e4e4 commit c172927

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
@@ -3101,7 +3101,7 @@ ZEND_API zend_long ZEND_FASTCALL zend_dval_to_lval_slow(double d)
31013101
if (dmod < 0) {
31023102
/* we're going to make this number positive; call ceil()
31033103
* to simulate rounding towards 0 of the negative number */
3104-
dmod = ceil(dmod);// + two_pow_32;
3104+
dmod = ceil(dmod) + two_pow_32;
31053105
}
31063106
return (zend_long)(zend_ulong)dmod;
31073107
}

0 commit comments

Comments
 (0)