From 77195216ff1d1d75a7a988bf577f02340f28479d Mon Sep 17 00:00:00 2001 From: Adam Heinrich Date: Mon, 31 Dec 2018 12:11:08 +0100 Subject: [PATCH] cmd: bmp: Make integer-to-pointer cast platform, independent This patch fixes the int-to-pointer-cast warning on aarch64. Signed-off-by: Adam Heinrich Signed-off-by: Alexander Graf Signed-off-by: Matthias Brugger --- cmd/bmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bmp.c b/cmd/bmp.c index b8af784590..00f0256a30 100644 --- a/cmd/bmp.c +++ b/cmd/bmp.c @@ -57,7 +57,7 @@ struct bmp_image *gunzip_bmp(unsigned long addr, unsigned long *lenp, bmp = dst; /* align to 32-bit-aligned-address + 2 */ - bmp = (struct bmp_image *)((((unsigned int)dst + 1) & ~3) + 2); + bmp = (struct bmp_image *)((((uintptr_t)dst + 1) & ~3) + 2); if (gunzip(bmp, CONFIG_SYS_VIDEO_LOGO_MAX_SIZE, map_sysmem(addr, 0), &len) != 0) { -- 2.30.2