Skip to content

Commit

Permalink
lib.poptrie: update a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Mar 20, 2019
1 parent e22dcd8 commit 4e9379b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/poptrie.lua
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ function Poptrie:build_node (rib, node_index, default)
end
end
end
-- Allocate child nodes (this has to be done before recursing into build()
-- because their indices into the nodes array need to be node.base1 + index,
-- and build() will advance the node_base.)
-- Allocate child nodes (this has to be done before recursing into
-- build_node() because their indices into the nodes array need to be
-- node.base1 + index, and build() will advance the node_base.)
local child_nodes = {}
for index = 0, 2^Poptrie.k - 1 do
if children[index] then
Expand Down

0 comments on commit 4e9379b

Please sign in to comment.