Fix ptr arithmetic hopefully

This commit is contained in:
slurdge 2020-06-11 11:35:15 +02:00
parent 35857f535d
commit 53c5456f7a

View file

@ -2065,7 +2065,7 @@ void __attribute__((noreturn)) AppMain(void) {
SpinDelay(100);
BigBuf_initialize();
for (uint32_t * p = &_stack_start; p < (&_stack_end) - 0x80; ++p) {
for (uint32_t * p = &_stack_start; p < ((uint32_t *)(uintptr_t)&_stack_end) - 0x80; ++p) {
*p = 0xdeadbeef;
}