From bd82cb4f21985b4d703091d750d5d7e5e9e04ea7 Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Tue, 11 Oct 2016 11:03:48 +0800 Subject: [PATCH] BaseTools/GenFw: 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/GenFw/GenFw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/C/GenFw/GenFw.c b/BaseTools/Source/C/GenFw/GenFw.c index 9ffc4c5b01..22e4e7283c 100644 --- a/BaseTools/Source/C/GenFw/GenFw.c +++ b/BaseTools/Source/C/GenFw/GenFw.c @@ -3158,7 +3158,7 @@ Returns: { CHAR8 Line[MAX_LINE_LEN]; CHAR8 *cptr; - unsigned ScannedData = 0; + int ScannedData = 0; Line[MAX_LINE_LEN - 1] = 0; while (1) { -- 2.39.2