From e5a23052697874f7585452604d2496c6ed50a612 Mon Sep 17 00:00:00 2001 From: Gabriel Somlo Date: Sun, 20 Mar 2022 14:30:16 -0400 Subject: [PATCH] bios/memtest: fix cast warning --- litex/soc/software/libbase/memtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/software/libbase/memtest.c b/litex/soc/software/libbase/memtest.c index b41a5d727..273a8b025 100644 --- a/litex/soc/software/libbase/memtest.c +++ b/litex/soc/software/libbase/memtest.c @@ -267,7 +267,7 @@ void memspeed(unsigned int *addr, unsigned long size, bool read_only, bool rando __attribute__((unused)) unsigned long data; const unsigned int sz = sizeof(unsigned long); int burst_size = 4; - volatile unsigned long *ptr, *ptr_max = (volatile unsigned long )(((char *)array) + size - sz*burst_size); + volatile unsigned long *ptr, *ptr_max = (volatile unsigned long *)(((char *)array) + size - sz*burst_size); printf("Memspeed at %p (", addr);