summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-03-14 12:12:01 +0300
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-03-16 11:37:04 +0300
commitfbc6ceae6f0d97672d11bef8df406ea31c49c0fe (patch)
treed61b5a62eb031cd619b8b907162928f96068f9ba /lib
parent9ff9f4b4268946f3b73d9759766ccfcc599da004 (diff)
downloadu-boot-fbc6ceae6f0d97672d11bef8df406ea31c49c0fe.tar.xz
efi_selftest: illegal cast to pointer in initrddump
On 32bit systems u64 cannot directly be cast to void *. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_selftest/initrddump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_selftest/initrddump.c b/lib/efi_selftest/initrddump.c
index c23a05c718..325951b498 100644
--- a/lib/efi_selftest/initrddump.c
+++ b/lib/efi_selftest/initrddump.c
@@ -272,7 +272,7 @@ static efi_status_t get_initrd(void **initrd, efi_uintn_t *initrd_size)
error(L"Out of memory\r\n");
return ret;
}
- *initrd = (void *)buffer;
+ *initrd = (void *)(uintptr_t)buffer;
ret = load_file2_prot->load_file(load_file2_prot, dp, false,
initrd_size, *initrd);
if (ret != EFI_SUCCESS) {