Skip to content

Commit 5637126

Browse files
author
Elliott Slaughter
committed
rt: Fix GC metadata for 64-bit systems.
1 parent 961bd48 commit 5637126

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rt/rust_gc_metadata.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ struct update_gc_entry_args {
1616
};
1717

1818
static void
19-
update_gc_entry(const mod_entry* entry, void *cookie) {
19+
update_gc_entry(const mod_entry *entry, void *cookie) {
2020
update_gc_entry_args *args = (update_gc_entry_args *)cookie;
2121
if (!strcmp(entry->name, "_gc_module_metadata")) {
22-
uintptr_t *next = entry->state;
22+
uintptr_t *next = (uintptr_t *)entry->state;
2323
uint32_t num_safe_points = *(uint32_t *)next;
2424
next++;
2525

0 commit comments

Comments
 (0)