Use 8-byte pointers on 32-bit hosts for now.
This will be target-dependent and host-independent eventually.
This commit is contained in:
parent
84f21584ea
commit
e81d88d236
1 changed files with 3 additions and 2 deletions
|
@ -102,8 +102,9 @@ impl Memory {
|
||||||
alloc_map: HashMap::new(),
|
alloc_map: HashMap::new(),
|
||||||
next_id: AllocId(0),
|
next_id: AllocId(0),
|
||||||
|
|
||||||
// TODO(tsion): Should this be host's or target's usize?
|
// FIXME(tsion): This should work for both 4 and 8, but it currently breaks some things
|
||||||
pointer_size: mem::size_of::<usize>(),
|
// when set to 4.
|
||||||
|
pointer_size: 8,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue