From 337da5e6321ac9eaa65a593db5b3e2191c9e4d4f Mon Sep 17 00:00:00 2001 From: vit9696 Date: Mon, 8 Oct 2018 23:42:41 +0300 Subject: [PATCH] Provide scanf with unsigned for strict compliance --- common/ffs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/ffs.cpp b/common/ffs.cpp index 9fa2150..aa56957 100644 --- a/common/ffs.cpp +++ b/common/ffs.cpp @@ -75,7 +75,7 @@ UString guidToUString(const EFI_GUID & guid, bool convertToString) bool ustringToGuid(const UString & str, EFI_GUID & guid) { unsigned long p0; - int p1, p2, p3, p4, p5, p6, p7, p8, p9, p10; + unsigned p1, p2, p3, p4, p5, p6, p7, p8, p9, p10; int err = std::sscanf(str.toLocal8Bit(), "%08lX-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X", &p0, &p1, &p2, &p3, &p4, &p5, &p6, &p7, &p8, &p9, &p10);