From 1f23ecc3000b14c02cbaf47a819ed89ac93ec12e Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Mon, 13 Apr 2015 19:55:25 -0400 Subject: Make lib/ build right with the cflags it should be using... ... but isn't. Signed-off-by: Peter Jones --- lib/configtable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/configtable.c') diff --git a/lib/configtable.c b/lib/configtable.c index e2d92bf0..edf2ed74 100644 --- a/lib/configtable.c +++ b/lib/configtable.c @@ -14,7 +14,7 @@ void * configtable_get_table(EFI_GUID *guid) { - int i; + unsigned int i; for (i = 0; i < ST->NumberOfTableEntries; i++) { EFI_CONFIGURATION_TABLE *CT = &ST->ConfigurationTable[i]; @@ -82,7 +82,7 @@ configtable_find_image(const EFI_DEVICE_PATH *DevicePath) } EFI_DEVICE_PATH *dp = (EFI_DEVICE_PATH *)(e->Data + skip), *dpn = dp; if (dp->Type == 0 || dp->Type > 6 || dp->SubType == 0 - || (((dp->Length[1] << 8) + dp->Length[0]) > e->InfoSize)) { + || ((unsigned)((dp->Length[1] << 8) + dp->Length[0]) > e->InfoSize)) { /* Parse error, table corrupt, bail */ Print(L"Image Execution Information table corrupt\n"); break; -- cgit v1.2.3