From 15b5aae3959ef95a009d9ba49286ccb7b7183fb6 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Mon, 29 Jun 2015 14:41:21 -0400 Subject: [PATCH] More incorrect unsigned vs signed fixups from yours truly. Woops. Signed-off-by: Peter Jones --- lib/console.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/console.c b/lib/console.c index b62fe4c..3fee403 100644 --- a/lib/console.c +++ b/lib/console.c @@ -189,10 +189,11 @@ console_select(CHAR16 *title[], CHAR16* selectors[], unsigned int start) SIMPLE_TEXT_OUTPUT_INTERFACE *co = ST->ConOut; EFI_INPUT_KEY k; EFI_STATUS status; - unsigned int selector; + int selector; unsigned int selector_lines = count_lines(selectors); int selector_max_cols = 0; - unsigned int i, offs_col, offs_row, size_cols, size_rows, lines; + unsigned int i; + int offs_col, offs_row, size_cols, size_rows, lines; unsigned int selector_offset; UINTN cols, rows; @@ -224,7 +225,7 @@ console_select(CHAR16 *title[], CHAR16* selectors[], unsigned int start) lines = selector_lines; } - if (start > lines) { + if (start > (unsigned)lines) { selector = lines; selector_offset = start - lines; } else {