Skip to content

Commit 92d6050

Browse files
zhuoweikateinoigakukun
authored andcommitted
WebAssembly: fix metadata table sizes
Whoops.
1 parent 3d8e478 commit 92d6050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/SwiftRT-ELF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static void swift_image_constructor() {
5454
// WebAssembly hack: ok this should really go in its own file
5555
#define SWIFT_SECTION_RANGE(name) \
5656
{ reinterpret_cast<uintptr_t>(&__start_##name) + sizeof(void*), \
57-
static_cast<uintptr_t>(&__stop_##name - &__start_##name) }
57+
static_cast<uintptr_t>(&__stop_##name - &__start_##name - sizeof(void*)) }
5858
#endif
5959

6060
sections = {

0 commit comments

Comments
 (0)