From 0470d800d5426085e4beca580e2dadebb64a23db Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Tue, 17 Nov 2015 11:39:21 -0500 Subject: [PATCH] MokManager: Fix a -Wsign-compare bug on i?86 My favorite part of -Wsign-compare is how it shows different results on different arches for no obvious reason. Signed-off-by: Peter Jones --- MokManager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MokManager.c b/MokManager.c index ee6dffb..2de6853 100644 --- a/MokManager.c +++ b/MokManager.c @@ -588,11 +588,11 @@ static void show_mok_info (EFI_GUID Type, void *Mok, UINTN MokSize) static EFI_STATUS list_keys (void *KeyList, UINTN KeyListSize, CHAR16 *title) { - INTN MokNum = 0; + UINTN MokNum = 0; MokListNode *keys = NULL; UINT32 key_num = 0; CHAR16 **menu_strings; - int i; + unsigned int i; if (KeyListSize < (sizeof(EFI_SIGNATURE_LIST) + sizeof(EFI_SIGNATURE_DATA))) {