summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/math.c b/ext/standard/math.c
index 993fd2e494..4ca710d235 100644
--- a/ext/standard/math.c
+++ b/ext/standard/math.c
@@ -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)