cvs: php4 /ext/standard math.c
| From: | Derick Rethans | Date: | Mon, 01 Apr 2002 09:19:58 +0000 |
| Subject: | cvs: php4 /ext/standard math.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-10807@lists.php.net to get a copy of this message | ||
derick Mon Apr 1 04:19:58 2002 EDT
Modified files:
/php4/ext/standard math.c
Log:
- Fix for bug #14966
Index: php4/ext/standard/math.c
diff -u php4/ext/standard/math.c:1.82 php4/ext/standard/math.c:1.83
--- php4/ext/standard/math.c:1.82 Mon Mar 11 00:43:23 2002
+++ php4/ext/standard/math.c Mon Apr 1 04:19:57 2002
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: math.c,v 1.82 2002/03/11 05:43:23 sebastian Exp $ */
+/* $Id: math.c,v 1.83 2002/04/01 09:19:57 derick Exp $ */
#include "php.h"
#include "php_math.h"
@@ -138,7 +138,7 @@
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)