mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1: fix double cast to int on 32-bit
This commit is contained in:
commit
6e703c957e
1 changed files with 1 additions and 1 deletions
|
@ -3108,7 +3108,7 @@ ZEND_API zend_long ZEND_FASTCALL zend_dval_to_lval_slow(double d)
|
||||||
if (dmod < 0) {
|
if (dmod < 0) {
|
||||||
/* we're going to make this number positive; call ceil()
|
/* we're going to make this number positive; call ceil()
|
||||||
* to simulate rounding towards 0 of the negative number */
|
* 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;
|
return (zend_long)(zend_ulong)dmod;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue