cvs: php4 /ext/standard formatted_print.c
| From: | Derick Rethans | Date: | Tue, 27 Mar 2001 17:21:45 +0000 |
| Subject: | cvs: php4 /ext/standard formatted_print.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-4864@lists.php.net to get a copy of this message | ||
derick Tue Mar 27 09:21:45 2001 EDT
Modified files:
/php4/ext/standard formatted_print.c
Log:
- 'Fix' for bug 10002
Index: php4/ext/standard/formatted_print.c
diff -u php4/ext/standard/formatted_print.c:1.28 php4/ext/standard/formatted_print.c:1.29
--- php4/ext/standard/formatted_print.c:1.28 Sun Feb 25 22:07:17 2001
+++ php4/ext/standard/formatted_print.c Tue Mar 27 09:21:45 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: formatted_print.c,v 1.28 2001/02/26 06:07:17 andi Exp $ */
+/* $Id: formatted_print.c,v 1.29 2001/03/27 17:21:45 derick Exp $ */
#include <math.h> /* modf() */
#include "php.h"
@@ -92,7 +92,7 @@
while (p1 < &cvt_buf[NDIG])
*p++ = *p1++;
} else if (arg > 0) {
- while ((fj = arg * 10) < 1) {
+ while ((fj = arg * 10.0) < 0.9999999) {
arg = fj;
r2--;
}