diff options
| author | Peter Jones <pjones@redhat.com> | 2015-06-29 14:41:21 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2015-06-29 14:41:21 -0400 |
| commit | 15b5aae3959ef95a009d9ba49286ccb7b7183fb6 (patch) | |
| tree | 11cab85e787706fe54d8612b56f33d7a8fef950e /lib/console.c | |
| parent | c41efe5a8cd36823ce775a9b58b1242832d6edf2 (diff) | |
| download | efi-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>
Diffstat (limited to 'lib/console.c')
| -rw-r--r-- | lib/console.c | 7 |
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 { |
