Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions memiavl/mem_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
}

func (node *MemNode) updateHeightSize() {
node.height = maxUInt8(node.left.Height(), node.right.Height()) + 1
node.height = max(node.left.Height(), node.right.Height()) + 1
node.size = node.left.Size() + node.right.Size()
}

Expand Down Expand Up @@ -210,9 +210,3 @@
return err
}

func maxUInt8(a, b uint8) uint8 {
if a > b {
return a
}
return b
}
Loading