aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt2021-03-14 10:12:01 +0100
committerHeinrich Schuchardt2021-03-16 09:37:04 +0100
commitfbc6ceae6f0d97672d11bef8df406ea31c49c0fe (patch)
treed61b5a62eb031cd619b8b907162928f96068f9ba /lib
parent9ff9f4b4268946f3b73d9759766ccfcc599da004 (diff)
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 c23a05c718f..325951b4986 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) {