oops, pass p.hash to insert
parent
02db918b6f
commit
966e6a5864
2
pmap.go
2
pmap.go
|
@ -72,7 +72,7 @@ func (p pmap) Get(k Key) (Value, bool) {
|
||||||
|
|
||||||
func (p pmap) Set(k Key, v Value) Map {
|
func (p pmap) Set(k Key, v Value) Map {
|
||||||
h := p.hash(k)
|
h := p.hash(k)
|
||||||
root, added := insert(p.root, h, k, v, hash)
|
root, added := insert(p.root, h, k, v, p.hash)
|
||||||
p.root = root
|
p.root = root
|
||||||
if added {
|
if added {
|
||||||
p.len++
|
p.len++
|
||||||
|
|
Loading…
Reference in New Issue