From 0e398dc7392bcf5f855ab76192f226051b05a309 Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Wed, 20 Aug 2014 23:20:54 +0000 Subject: StdLib: reinstate the use of va_arg() to handle long double arguments in vfscanf. NOTE: Replaces the previous version which was a file from the wrong project. Applies the patch, submitted by Olivier Martin, to use va_arg for long double. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Reviewed-by: Daryl McDaniel Includes some cosmetic changes to enhance readability. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15859 6f19259b-4bc3-4df7-8a09-765794883524 --- StdLib/LibC/Stdio/vfscanf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/StdLib/LibC/Stdio/vfscanf.c b/StdLib/LibC/Stdio/vfscanf.c index 9cd2c47d79..1e8c7f920a 100644 --- a/StdLib/LibC/Stdio/vfscanf.c +++ b/StdLib/LibC/Stdio/vfscanf.c @@ -124,8 +124,8 @@ int __scanfdebug = 0; static int __collate_range_cmp(int c1, int c2) { - static char s1[2] = { {0}, {0} }; - static char s2[2] = { {0}, {0} }; + static char s1[2] = { 0 }; + static char s2[2] = { 0 }; s1[0] = (char)c1; s2[0] = (char)c2; -- cgit v1.2.3