diff options
author | Olivier Martin <Olivier.Martin@arm.com> | 2014-08-20 23:20:54 +0000 |
---|---|---|
committer | darylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-20 23:20:54 +0000 |
commit | 0e398dc7392bcf5f855ab76192f226051b05a309 (patch) | |
tree | a273cf488fe3d75bc468254f6faf24e109509a77 /StdLib | |
parent | 1bc81f40096526647ce5c74dadea42d2ab9363f5 (diff) | |
download | edk2-0e398dc7392bcf5f855ab76192f226051b05a309.tar.gz edk2-0e398dc7392bcf5f855ab76192f226051b05a309.tar.bz2 edk2-0e398dc7392bcf5f855ab76192f226051b05a309.zip |
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 <Olivier.Martin@arm.com>
Reviewed-by: Daryl McDaniel <daryl.mcdaniel@intel.com>
Includes some cosmetic changes to enhance readability.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Daryl McDaniel <daryl.mcdaniel@intel.com>
Reviewed-by: Olivier Martin <Olivier.Martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15859 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLib')
-rw-r--r-- | StdLib/LibC/Stdio/vfscanf.c | 4 |
1 files 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;
|