diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/vnf/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vnf/src/lib.rs b/lib/vnf/src/lib.rs index 7b6dda8..61995ee 100644 --- a/lib/vnf/src/lib.rs +++ b/lib/vnf/src/lib.rs @@ -1804,8 +1804,8 @@ impl Machine { }; self.working_ram = vec![cell; 0x2000]; } else if before != chip.prg_ram_writes_allowed { - for i in 0..0x2000 { - self.working_ram[i].write_allowed = chip.prg_ram_writes_allowed; + for cell in self.working_ram.iter_mut().take(0x2000) { + cell.write_allowed = chip.prg_ram_writes_allowed; } } } else { |
