derick          Tue Mar 27 09:24:01 2001 EDT

  Modified files:              (Branch: PHP_4_0_5)
    /php4/ext/standard  formatted_print.c 
  Log:
  - MFH (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.28.2.1
--- 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:24:01 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.28.2.1 2001/03/27 17:24:01 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--;
                }



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to