1
Fork 0

Use 8-byte pointers on 32-bit hosts for now.

This will be target-dependent and host-independent eventually.
This commit is contained in:
Scott Olson 2016-04-15 03:28:10 -06:00
parent 84f21584ea
commit e81d88d236

View file

@ -102,8 +102,9 @@ impl Memory {
alloc_map: HashMap::new(),
next_id: AllocId(0),
// TODO(tsion): Should this be host's or target's usize?
pointer_size: mem::size_of::<usize>(),
// FIXME(tsion): This should work for both 4 and 8, but it currently breaks some things
// when set to 4.
pointer_size: 8,
}
}