From 02db918b6f47fb192b581d39a28b6d332b0a3c3b Mon Sep 17 00:00:00 2001 From: magical Date: Sun, 23 Jan 2022 03:13:39 +0000 Subject: [PATCH] fix zero type --- pmap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmap.go b/pmap.go index 3281e90..4351914 100644 --- a/pmap.go +++ b/pmap.go @@ -112,7 +112,7 @@ func (n collision) getNode(hash uint32, key Key) interface{} { return nil } -func lookup(root interface{}, shift, hash uint32, key Key, zero Key) (Value, bool) { +func lookup(root interface{}, shift, hash uint32, key Key, zero Value) (Value, bool) { cur := root for { switch n := cur.(type) {