From: Derick Rethans Date: Mon, 1 Apr 2002 09:21:29 +0000 (+0000) Subject: - MFH for fix for bug #14966 X-Git-Tag: php-4.2.0RC2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c10647f7f08b293d319f993df482ebc5316211cd;p=php - MFH for fix for bug #14966 --- diff --git a/ext/standard/math.c b/ext/standard/math.c index 7218fc74fc..ae9a5b02e2 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)