tony2001 Wed Dec 6 16:28:27 2006 UTC Modified files: /php-src/ext/standard formatted_print.c Log: move handling of 'F' to the top http://cvs.php.net/viewvc.cgi/php-src/ext/standard/formatted_print.c?r1=1.86&r2=1.87&diff_format=u Index: php-src/ext/standard/formatted_print.c diff -u php-src/ext/standard/formatted_print.c:1.86 php-src/ext/standard/formatted_print.c:1.87 --- php-src/ext/standard/formatted_print.c:1.86 Wed Dec 6 14:47:19 2006 +++ php-src/ext/standard/formatted_print.c Wed Dec 6 16:28:27 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: formatted_print.c,v 1.86 2006/12/06 14:47:19 tony2001 Exp $ */ +/* $Id: formatted_print.c,v 1.87 2006/12/06 16:28:27 tony2001 Exp $ */ #include <math.h> /* modf() */ #include "php.h" @@ -222,14 +222,14 @@ return; } - switch (fmt) { + switch (fmt) { + case 'F': + fmt = 'f'; + /* break is missing */ case 'e': if (precision) { precision--; } - case 'F': - fmt = 'f'; - /* break is missing */ case 'E': case 'f': s = ap_php_conv_fp(fmt, number, 0, precision,
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php