Skip to content

Commit e4776d1

Browse files
committed
Fixed upper bound for clear_mem_slice()
1 parent 99e2942 commit e4776d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bus.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl Bus {
4444
if end > self.address_space.len() {
4545
panic!("Write operation after the end of address space !")
4646
}
47-
for m in start..end {
47+
for m in start..=end {
4848
self.address_space[m] = 0;
4949
}
5050
}

0 commit comments

Comments
 (0)