From e81d88d236f4780dd6c09267fbb56710eda196a2 Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Fri, 15 Apr 2016 03:28:10 -0600 Subject: [PATCH] Use 8-byte pointers on 32-bit hosts for now. This will be target-dependent and host-independent eventually. --- src/memory.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/memory.rs b/src/memory.rs index b99dae15970..14aa4f9d799 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -102,8 +102,9 @@ pub fn new() -> Self { alloc_map: HashMap::new(), next_id: AllocId(0), - // TODO(tsion): Should this be host's or target's usize? - pointer_size: mem::size_of::(), + // FIXME(tsion): This should work for both 4 and 8, but it currently breaks some things + // when set to 4. + pointer_size: 8, } } -- 2.44.0