]> granicus.if.org Git - php/commitdiff
- MFH for fix for bug #14966
authorDerick Rethans <derick@php.net>
Mon, 1 Apr 2002 09:21:29 +0000 (09:21 +0000)
committerDerick Rethans <derick@php.net>
Mon, 1 Apr 2002 09:21:29 +0000 (09:21 +0000)
ext/standard/math.c

index 7218fc74fc298a4217f1f5499b4ab42bc5e05954..ae9a5b02e2a3fa132e1a3cfbba3aa964c981d3ee 100644 (file)
@@ -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)