Commit 77195216 authored by Adam Heinrich's avatar Adam Heinrich Committed by Matthias Brugger
Browse files

cmd: bmp: Make integer-to-pointer cast platform, independent



This patch fixes the int-to-pointer-cast warning on aarch64.
Signed-off-by: default avatarAdam Heinrich <adam@adamh.cz>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
Signed-off-by: Matthias Brugger's avatarMatthias Brugger <mbrugger@suse.com>
parent 97276a91
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment