Skip to content

Commit

Permalink
old_capacity.times - follow @Sija
Browse files Browse the repository at this point in the history
  • Loading branch information
akzhan committed Sep 18, 2017
1 parent ed138fe commit 34286ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/string_pool.cr
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class StringPool
@values = Pointer(String).malloc(@capacity, "")
@size = 0

0.upto(old_capacity - 1) do |i|
old_capacity.times do |i|
if old_hashes[i] != 0
put_on_rehash(old_hashes[i], old_values[i])
end
Expand Down

0 comments on commit 34286ae

Please sign in to comment.