summaryrefslogtreecommitdiff
path: root/ext/standard/math.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2002-04-01 09:19:57 +0000
committerDerick Rethans <derick@php.net>2002-04-01 09:19:57 +0000
commitf4447a9cc1d582a7065bfe78c089f5823ee3f46d (patch)
treef677498c1a1b1459a7b68f3545dcce259519df67 /ext/standard/math.c
parent700b9eb73417f827751f8dfc829b452988ec2b3b (diff)
downloadphp-git-f4447a9cc1d582a7065bfe78c089f5823ee3f46d.tar.gz
- Fix for bug #14966
Diffstat (limited to 'ext/standard/math.c')
-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)