fix shift type
parent
0474ebd63d
commit
54dbd81e0c
2
pmap.go
2
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) {
|
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) {
|
||||||
|
|
Loading…
Reference in New Issue