Skip to content

Commit e81d88d

Browse files
committed
Use 8-byte pointers on 32-bit hosts for now.
This will be target-dependent and host-independent eventually.
1 parent 84f2158 commit e81d88d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/memory.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ impl Memory {
102102
alloc_map: HashMap::new(),
103103
next_id: AllocId(0),
104104

105-
// TODO(tsion): Should this be host's or target's usize?
106-
pointer_size: mem::size_of::<usize>(),
105+
// FIXME(tsion): This should work for both 4 and 8, but it currently breaks some things
106+
// when set to 4.
107+
pointer_size: 8,
107108
}
108109
}
109110

0 commit comments

Comments
 (0)