From: Derick Rethans Date: Mon, 1 Apr 2002 09:19:57 +0000 (+0000) Subject: - Fix for bug #14966 X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~936 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f4447a9cc1d582a7065bfe78c089f5823ee3f46d;p=php - Fix for bug #14966 --- 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)