From 54dbd81e0c1dd8bb8e57d08208a30dae79acdb31 Mon Sep 17 00:00:00 2001 From: magical Date: Sun, 23 Jan 2022 05:46:04 +0000 Subject: [PATCH] fix shift type --- pmap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmap.go b/pmap.go index 88ff72d..8d55b99 100644 --- a/pmap.go +++ b/pmap.go @@ -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) { - shift := 0 + var shift uint32 cur := root for { switch n := cur.(type) {