Merge pull request #1246 from gsomlo/gls-memtest-cast-warning

bios/memtest: fix cast warning
This commit is contained in:
Dolu1990 2022-03-20 21:09:36 +01:00 committed by GitHub
commit f5d4977dde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ void memspeed(unsigned int *addr, unsigned long size, bool read_only, bool rando
__attribute__((unused)) unsigned long data; __attribute__((unused)) unsigned long data;
const unsigned int sz = sizeof(unsigned long); const unsigned int sz = sizeof(unsigned long);
int burst_size = 4; 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); printf("Memspeed at %p (", addr);