fix zero type
parent
82711582b1
commit
02db918b6f
2
pmap.go
2
pmap.go
|
@ -112,7 +112,7 @@ func (n collision) getNode(hash uint32, key Key) interface{} {
|
||||||
return nil
|
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
|
cur := root
|
||||||
for {
|
for {
|
||||||
switch n := cur.(type) {
|
switch n := cur.(type) {
|
||||||
|
|
Loading…
Reference in New Issue