Skip to content

Commit

Permalink
fix double cast to int on 32-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Aug 30, 2018
1 parent 709e4e4 commit c172927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Zend/zend_operators.c
Original file line number Diff line number Diff line change
Expand Up @@ -3101,7 +3101,7 @@ ZEND_API zend_long ZEND_FASTCALL zend_dval_to_lval_slow(double d)
if (dmod < 0) {
/* we're going to make this number positive; call ceil()
* to simulate rounding towards 0 of the negative number */
dmod = ceil(dmod);// + two_pow_32;
dmod = ceil(dmod) + two_pow_32;
}
return (zend_long)(zend_ulong)dmod;
}
Expand Down

0 comments on commit c172927

Please sign in to comment.