summaryrefslogtreecommitdiff
path: root/cmd/bmp.c
diff options
context:
space:
mode:
authorAdam Heinrich <adam@adamh.cz>2018-12-31 12:11:08 +0100
committerMatthias Brugger <mbrugger@suse.com>2019-02-15 12:48:02 +0100
commit77195216ff1d1d75a7a988bf577f02340f28479d (patch)
tree631f02fd16bd7ab3d54e35f119adf3c86bff8a0f /cmd/bmp.c
parent97276a91db8e98f081a40ddf9dc8f81d4032a756 (diff)
downloadu-boot-77195216ff1d1d75a7a988bf577f02340f28479d.tar.gz
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 <adam@adamh.cz> Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Diffstat (limited to 'cmd/bmp.c')
-rw-r--r--cmd/bmp.c2
1 files changed, 1 insertions, 1 deletions
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) {