mirror of
https://github.com/php/php-src.git
synced 2025-08-16 22:18:50 +02:00
- Fix for bug #14966
This commit is contained in:
parent
700b9eb734
commit
f4447a9cc1
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ PHP_FUNCTION(round)
|
|||
return_val = (Z_TYPE_PP(value) == IS_LONG) ?
|
||||
(double)Z_LVAL_PP(value) : Z_DVAL_PP(value);
|
||||
|
||||
f = pow(10.0, places);
|
||||
f = pow(10.0, (double) places);
|
||||
|
||||
return_val *= f;
|
||||
if (return_val >= 0.0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue