sandbox: os: common: fix compiler warning in add_image()
GCC reports:

  ./arch/sandbox/os/common.c: In function ‘add_image’:
  ./arch/sandbox/os/common.c:271:6: warning: cast to pointer from integer of
  	different size [-Wint-to-pointer-cast]

This is because hf->base is an unsigned long long, with the upper 32 bit
all-zeroes on 32-bit systems. The compiler doesn't see that though.

Change the cast, so we no longer warn.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent df694a4 commit 4c0809a21073af2d482683ec5327f59b31c355ff
@Ahmad Fatoum Ahmad Fatoum authored on 6 Jul 2020
Sascha Hauer committed on 14 Jul 2020
Showing 1 changed file
View
arch/sandbox/os/common.c