aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Yin <[email protected]>2018-07-08 10:35:56 -0700
committerTed Yin <[email protected]>2018-07-08 10:35:56 -0700
commit49941e952789e91d4125333d41725618efa9b734 (patch)
tree26b364229a34a3fbf6a65b25f147dd45a7a894d6
parenta670aa49d9fa8d93444d21e7576ac228ca372d25 (diff)
fix bug: incorrect ignored size for memory
-rw-r--r--src/memory.rs5
1 files 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::<RefCell<Sampler>>() +
- size_of::<*mut CPU>() +
+ () => (size_of::<*mut CPU>() +
size_of::<*mut PPU>() +
size_of::<*mut APU>())
}