Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkovsky committed Apr 27, 2018
1 parent 347d97a commit 76c05e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aha/cedar.cr
Expand Up @@ -746,7 +746,7 @@ module Aha
return p_ptr.value.value if p_ptr.value.end? && p_ptr.value.value != self.class.value_limit
p_ptr.value.value = id # 设置 id
p_ptr.value.end!
if @key_num == @key_capacity
if @leaf_size == @key_capacity
@key_capacity *= 2
@leafs = @leafs.realloc(@key_capacity)
end
Expand Down

0 comments on commit 76c05e5

Please sign in to comment.