From 97754ba7f51f8cb0c7827b9ee2807a8ffd97fc6e Mon Sep 17 00:00:00 2001
From: David Li
Date: Thu, 14 Jan 2016 10:53:17 -0700
Subject: Fix tests
---
src/memory.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'src/memory.rs')
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(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],
}
}
--
cgit v1.2.3