summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2015-06-29 14:41:21 -0400
committerPeter Jones <pjones@redhat.com>2015-06-29 14:41:21 -0400
commit15b5aae3959ef95a009d9ba49286ccb7b7183fb6 (patch)
tree11cab85e787706fe54d8612b56f33d7a8fef950e
parentc41efe5a8cd36823ce775a9b58b1242832d6edf2 (diff)
downloadefi-boot-shim-15b5aae3959ef95a009d9ba49286ccb7b7183fb6.tar.gz
efi-boot-shim-15b5aae3959ef95a009d9ba49286ccb7b7183fb6.zip
More incorrect unsigned vs signed fixups from yours truly.
Woops. Signed-off-by: Peter Jones <pjones@redhat.com>
-rw-r--r--lib/console.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/console.c b/lib/console.c
index b62fe4cc..3fee403e 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 {