diff --git a/litex/soc/software/bios/boot.c b/litex/soc/software/bios/boot.c index 7516c0dd6..67aaf1417 100644 --- a/litex/soc/software/bios/boot.c +++ b/litex/soc/software/bios/boot.c @@ -212,7 +212,7 @@ int serialboot(void) char *writepointer; failed = 0; - writepointer = (char *) get_uint32(&frame.payload[0]); + writepointer = (char *)(uintptr_t) get_uint32(&frame.payload[0]); for(i=4;i