mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
1bc81f4009
commit
0e398dc739
|
@ -124,8 +124,8 @@ int __scanfdebug = 0;
|
||||||
static int
|
static int
|
||||||
__collate_range_cmp(int c1, int c2)
|
__collate_range_cmp(int c1, int c2)
|
||||||
{
|
{
|
||||||
static char s1[2] = { {0}, {0} };
|
static char s1[2] = { 0 };
|
||||||
static char s2[2] = { {0}, {0} };
|
static char s2[2] = { 0 };
|
||||||
|
|
||||||
s1[0] = (char)c1;
|
s1[0] = (char)c1;
|
||||||
s2[0] = (char)c2;
|
s2[0] = (char)c2;
|
||||||
|
|
Loading…
Reference in New Issue