Skip to content

Commit 413d60c

Browse files
committed
static_build: fix bss initialization
1 parent dd41474 commit 413d60c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ extern "C" __attribute__((section(".entry_point"), used)) void entry_point(struc
9595
printk("Sketch Heap start: %p, size %p\n", &kheap_llext_heap, &kheap_llext_heap_size);
9696

9797
memcpy(&_sdata, &_sidata, (&_edata - &_sdata) * sizeof(uint32_t));
98-
memset(&_sbss, 0, &_ebss - &_sbss);
98+
memset(&_sbss, 0, (&_ebss - &_sbss) * sizeof(uint32_t));
9999
__libc_init_array();
100100
main();
101101
}

0 commit comments

Comments
 (0)