Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  fix double cast to int on 32-bit
This commit is contained in:
Remi Collet 2018-08-30 09:04:43 +02:00
commit cf6c32545e

View File

@ -3234,7 +3234,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;
}