Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkovsky committed Apr 28, 2018
1 parent 76c05e5 commit 9be38f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/aha/ac.cr
Expand Up @@ -65,7 +65,7 @@ module Aha
fails = ArrayX(T).new(nlen, -1)
output = ArrayX(OutNode(T)).new(nlen, OutNode(T).new(-1, -1))
q = Deque(NamedTuple(node: Cedar::NodeDesc(T), len: Int32)).new
key_lens = ArrayX(UInt32).new(da.key_num, 0_u32)
key_lens = ArrayX(UInt32).new(da.leaf_size, 0_u32)
ro = 0
fails[ro] = ro
da.children(ro) do |c|
Expand Down
2 changes: 1 addition & 1 deletion src/aha/cedar.cr
Expand Up @@ -136,7 +136,7 @@ module Aha
@leaf_size : T

protected setter :array, :blocks, :reject, :bheadF, :bheadC, :bheadO, :array_size, :ordered, :max_trial, :leafs, :key_num, :capacity, :key_capacity
protected getter :array, :array_size, :capacity
protected getter :array, :array_size, :capacity, :leaf_size

def key_num
@key_num
Expand Down

0 comments on commit 9be38f5

Please sign in to comment.