Skip to content

Commit e2d37d3

Browse files
committed
WebAssembly: fix metadata table sizes
Whoops.
1 parent 3bb8a82 commit e2d37d3

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
@@ -51,7 +51,7 @@ static void swift_image_constructor() {
5151
// WebAssembly hack: ok this should really go in its own file
5252
#define SWIFT_SECTION_RANGE(name) \
5353
{ reinterpret_cast<uintptr_t>(&__start_##name) + sizeof(void*), \
54-
static_cast<uintptr_t>(&__stop_##name - &__start_##name) }
54+
static_cast<uintptr_t>(&__stop_##name - &__start_##name - sizeof(void*)) }
5555
#endif
5656

5757
sections = {

0 commit comments

Comments
 (0)