From 49941e952789e91d4125333d41725618efa9b734 Mon Sep 17 00:00:00 2001 From: Ted Yin Date: Sun, 8 Jul 2018 10:35:56 -0700 Subject: fix bug: incorrect ignored size for memory --- src/memory.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/memory.rs b/src/memory.rs index 78fd716..10980e7 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -1,7 +1,7 @@ #![allow(dead_code)] use ppu::PPU; use apu::APU; -use utils::{Sampler, Read, Write, load_prefix, save_prefix}; +use utils::{Read, Write, load_prefix, save_prefix}; use mos6502::CPU; use cartridge::MirrorType; use mapper::RefMapper; @@ -28,8 +28,7 @@ pub struct CPUBus<'a> { } macro_rules! CPUBUS_IGNORED_SIZE { - () => (size_of::>() + - size_of::<*mut CPU>() + + () => (size_of::<*mut CPU>() + size_of::<*mut PPU>() + size_of::<*mut APU>()) } -- cgit v1.2.3-70-g09d2