diff options
author | David Li <li.davidm96@gmail.com> | 2016-01-14 10:53:17 -0700 |
---|---|---|
committer | David Li <li.davidm96@gmail.com> | 2016-01-14 10:53:17 -0700 |
commit | 97754ba7f51f8cb0c7827b9ee2807a8ffd97fc6e (patch) | |
tree | a7c8845ca2de1f572bc974969339e0412bcd7e8a /src/memory.rs | |
parent | 59ae270a4fa286e72f7deef08dcd044828eefe63 (diff) |
Fix tests
Diffstat (limited to 'src/memory.rs')
-rw-r--r-- | src/memory.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/memory.rs b/src/memory.rs index 097519f..b9f070b 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -220,9 +220,9 @@ fn copy_u8_into_u32<T: Mmu>(mmu: &T, base: usize, src: &[u8], dst: &mut [u32]) { } impl Memory { - pub fn new(size: isa::Address) -> Memory { + pub fn new(size: usize) -> Memory { Memory { - memory: vec![0; size.0 as usize], + memory: vec![0; size as usize], } } |