diff options
| author | Richard W.M. Jones <rjones@redhat.com> | 2015-02-25 18:03:37 +0000 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2015-04-13 19:55:25 -0400 |
| commit | 90c65f72f882c2acd7f20cd59a5156aa63f7f425 (patch) | |
| tree | 66b65e6163e9beb73ab02f355d43ed14b3db342f | |
| parent | 5195d7d31bdec4e11401c4935e0fcf0b2c3f9e6f (diff) | |
| download | efi-boot-shim-90c65f72f882c2acd7f20cd59a5156aa63f7f425.tar.gz efi-boot-shim-90c65f72f882c2acd7f20cd59a5156aa63f7f425.zip | |
fallback: Fix comparison between signed and unsigned in debugging code.
fallback.c: In function ‘update_boot_order’:
fallback.c:334:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (j = 0 ; j < size / sizeof (CHAR16); j++)
^
fallback.c: In function ‘add_to_boot_list’:
fallback.c:402:16: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (i = 0; i < s; i++) {
^
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
| -rw-r--r-- | fallback.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -328,7 +328,7 @@ update_boot_order(void) #ifdef DEBUG_FALLBACK Print(L"nbootorder: %d\nBootOrder: ", size / sizeof (CHAR16)); - int j; + UINTN j; for (j = 0 ; j < size / sizeof (CHAR16); j++) Print(L"%04x ", newbootorder[j]); Print(L"\n"); @@ -395,7 +395,7 @@ add_to_boot_list(EFI_FILE_HANDLE fh, CHAR16 *dirname, CHAR16 *filename, CHAR16 * #ifdef DEBUG_FALLBACK { UINTN s = DevicePathSize(dp); - int i; + UINTN i; UINT8 *dpv = (void *)dp; for (i = 0; i < s; i++) { if (i > 0 && i % 16 == 0) |
