From f45b5a760530752bd6ea8125416cb6620a375468 Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Tue, 11 Oct 2016 11:04:13 +0800 Subject: 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 Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Reviewed-by: Liming Gao --- BaseTools/Source/C/GenVtf/GenVtf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'BaseTools/Source/C') diff --git a/BaseTools/Source/C/GenVtf/GenVtf.c b/BaseTools/Source/C/GenVtf/GenVtf.c index b68d86a97e..006822a79b 100644 --- a/BaseTools/Source/C/GenVtf/GenVtf.c +++ b/BaseTools/Source/C/GenVtf/GenVtf.c @@ -112,8 +112,8 @@ Returns: --*/ { CHAR8 TemStr[5] = "0000"; - unsigned Major; - unsigned Minor; + int Major; + int Minor; UINTN Length; Major = 0; -- cgit v1.2.3