Skip to content

Commit 0f55662

Browse files
facchinmpillo79
authored andcommitted
static_build: fix bss initialization
1 parent 76565bf commit 0f55662

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
@@ -99,7 +99,7 @@ extern "C" __attribute__((section(".entry_point"), used)) void entry_point(struc
9999
printk("Sketch Heap start: %p, size %p\n", &kheap_llext_heap, &kheap_llext_heap_size);
100100

101101
memcpy(&_sdata, &_sidata, (&_edata - &_sdata) * sizeof(uint32_t));
102-
memset(&_sbss, 0, &_ebss - &_sbss);
102+
memset(&_sbss, 0, (&_ebss - &_sbss) * sizeof(uint32_t));
103103
__libc_init_array();
104104
main();
105105
}

0 commit comments

Comments
 (0)