Cc: Liming Gao <liming....@intel.com>
Cc: Yonghong Zhu <yonghong....@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a...@intel.com>
---
 BaseTools/Source/C/GenVtf/GenVtf.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/BaseTools/Source/C/GenVtf/GenVtf.c 
b/BaseTools/Source/C/GenVtf/GenVtf.c
index b68d86a..8e75d04 100644
--- a/BaseTools/Source/C/GenVtf/GenVtf.c
+++ b/BaseTools/Source/C/GenVtf/GenVtf.c
@@ -123,8 +123,8 @@ Returns:
     sscanf (
       Str,
       "%02x.%02x",
-      &Major,
-      &Minor
+      (INT32 *) &Major,
+      (INT32 *) &Minor
       );
   } else {
     Length = strlen(Str);
@@ -137,8 +137,8 @@ Returns:
     sscanf (
       TemStr,
       "%02x%02x",
-      &Major,
-      &Minor
+      (INT32 *) &Major,
+      (INT32 *) &Minor
       );
   }
 
-- 
1.9.5.msysgit.0

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to