remove debug notes

This commit is contained in:
Vivian Lim 2020-03-07 23:23:00 -08:00
parent a3a7211cc6
commit 2b5f05deb4
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ impl EmulatorMemory<'_> {
None => {
// last read value isn't allocated yet
let mut last = vec![0; data.len()];
last.copy_from_slice(data); // ??? sizes are mismatching here.
last.copy_from_slice(data);
self.last_read_value = Some(last);
self.last_read_value.clone()
},
@ -63,7 +63,7 @@ impl EmulatorMemory<'_> {
let mut any_changes = false;
for value in data.into_iter() {
if last[index] != *value { // index out of range for last. last is not None but has size of 0??????
if last[index] != *value {
last[index] = *value;
any_changes = true;
}