oops, pass p.hash to insert

master
magical 2022-01-23 05:27:21 +00:00
parent 02db918b6f
commit 966e6a5864
1 changed files with 1 additions and 1 deletions

View File

@ -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++