cvs: php4(PHP_4_2_0) /ext/standard math.c
| From: | Derick Rethans | Date: | Mon, 01 Apr 2002 09:21:29 +0000 |
| Subject: | cvs: php4(PHP_4_2_0) /ext/standard math.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-10808@lists.php.net to get a copy of this message | ||
derick Mon Apr 1 04:21:29 2002 EDT
Modified files: (Branch: PHP_4_2_0)
/php4/ext/standard math.c
Log:
- MFH for fix for bug #14966
Index: php4/ext/standard/math.c
diff -u php4/ext/standard/math.c:1.80 php4/ext/standard/math.c:1.80.2.1
--- php4/ext/standard/math.c:1.80 Sat Mar 2 12:08:09 2002
+++ php4/ext/standard/math.c Mon Apr 1 04:21:29 2002
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: math.c,v 1.80 2002/03/02 17:08:09 hholzgra Exp $ */
+/* $Id: math.c,v 1.80.2.1 2002/04/01 09:21:29 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)