From 34286aeadb712379cd5a066599afd6f8ab6d5cad Mon Sep 17 00:00:00 2001 From: Akzhan Abdulin Date: Mon, 18 Sep 2017 19:03:25 +0300 Subject: [PATCH] old_capacity.times - follow @Sija --- src/string_pool.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string_pool.cr b/src/string_pool.cr index cd03a72e6fa6..79011266c0e1 100644 --- a/src/string_pool.cr +++ b/src/string_pool.cr @@ -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