From: Antony Dovgal Date: Wed, 6 Dec 2006 16:28:27 +0000 (+0000) Subject: move handling of 'F' to the top X-Git-Tag: RELEASE_1_0_0RC1~789 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b93db04a1de58553d370827846a3dc5fb8ecd351;p=php move handling of 'F' to the top --- diff --git a/ext/standard/formatted_print.c b/ext/standard/formatted_print.c index 567655e954..9d097b8a8e 100644 --- a/ext/standard/formatted_print.c +++ b/ext/standard/formatted_print.c @@ -222,14 +222,14 @@ php_sprintf_appenddouble(char **buffer, int *pos, 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,