aboutsummaryrefslogtreecommitdiff
path: root/src/memory.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/memory.rs')
-rw-r--r--src/memory.rs4
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],
}
}