Skip to content

Commit

Permalink
fix node4 clearLastElement
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Larkin <laxkin@gmail.com>
  • Loading branch information
plar committed Dec 2, 2024
1 parent 5febce9 commit aee92ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node_4.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,6 @@ func (n *node4) deleteChildAt(idx int) {
func (n *node4) clearLastElement() {
lastIdx := int(n.childrenLen)
n.keys[lastIdx] = 0
n.present[lastIdx] = 1
n.present[lastIdx] = 0
n.children[lastIdx] = nil
}

0 comments on commit aee92ef

Please sign in to comment.