mirror of https://github.com/acidanthera/audk.git
BaseTools/GenVtf: Fix parameter format mismatch in scanf functions
According to MSDN https://msdn.microsoft.com/en-us/library/6ttkkkhh.aspx Format specification '%x' for scanf expects type 'int *', modify the type of the relating variable to 'int' to keep them matched. Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
bd82cb4f21
commit
f45b5a7605
|
@ -112,8 +112,8 @@ Returns:
|
||||||
--*/
|
--*/
|
||||||
{
|
{
|
||||||
CHAR8 TemStr[5] = "0000";
|
CHAR8 TemStr[5] = "0000";
|
||||||
unsigned Major;
|
int Major;
|
||||||
unsigned Minor;
|
int Minor;
|
||||||
UINTN Length;
|
UINTN Length;
|
||||||
|
|
||||||
Major = 0;
|
Major = 0;
|
||||||
|
|
Loading…
Reference in New Issue