Skip to content

Commit

Permalink
Don't allocate an iterator on the heap unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrberry committed Jan 18, 2023
1 parent b73bad6 commit 19113be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crab/gba/thumb/push_pop_registers.cr
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module GBA
address &-= 4
@gba.bus[address] = @r[14]
end
7.downto(0).each do |idx|
7.downto(0) do |idx|
if bit?(list, idx)
address &-= 4
@gba.bus[address] = @r[idx]
Expand Down

0 comments on commit 19113be

Please sign in to comment.