fix shift type

master
magical 2022-01-23 05:46:04 +00:00
parent 0474ebd63d
commit 54dbd81e0c
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ func (n *collision) getNode(hash uint32, key Key) interface{} {
} }
func lookup(root interface{}, hash uint32, key Key, zero Value) (Value, bool) { func lookup(root interface{}, hash uint32, key Key, zero Value) (Value, bool) {
shift := 0 var shift uint32
cur := root cur := root
for { for {
switch n := cur.(type) { switch n := cur.(type) {