mirror of
https://github.com/mattrberry/crab.git
synced 2025-02-03 08:48:25 +01:00
Don't allocate an iterator on the heap unnecessarily
This commit is contained in:
parent
b73bad6ae2
commit
19113be832
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ module GBA
|
||||||
address &-= 4
|
address &-= 4
|
||||||
@gba.bus[address] = @r[14]
|
@gba.bus[address] = @r[14]
|
||||||
end
|
end
|
||||||
7.downto(0).each do |idx|
|
7.downto(0) do |idx|
|
||||||
if bit?(list, idx)
|
if bit?(list, idx)
|
||||||
address &-= 4
|
address &-= 4
|
||||||
@gba.bus[address] = @r[idx]
|
@gba.bus[address] = @r[idx]
|
||||||
|
|
Loading…
Add table
Reference in a new issue