Skip to content

Commit

Permalink
Improve debug code gen
Browse files Browse the repository at this point in the history
  • Loading branch information
furuame committed Oct 2, 2023
1 parent 4b5352d commit 78e6b85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sparta/sparta/resources/Array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,8 @@ namespace sparta
// oldest item.
auto it = aged_list_.rbegin();
uint32_t idx = invalid_entry_;
for(uint32_t i = 0; i < aged_list_.size(); ++i)
const uint32_t size = aged_list_.size();
for(uint32_t i = 0; i < size; ++i)
{
idx = *it;
++it;
Expand Down

0 comments on commit 78e6b85

Please sign in to comment.