mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-09 23:22:28 +08:00
fix: fix resize bug in HashMap
This commit is contained in:
@@ -98,6 +98,8 @@ func (hm *HashMap) resize() {
|
||||
|
||||
tempTable := hm.table
|
||||
|
||||
hm.table = make([]*mapNode, hm.capacity)
|
||||
|
||||
for i := 0; i < len(tempTable); i++ {
|
||||
node := tempTable[i]
|
||||
if node == nil {
|
||||
|
||||
Reference in New Issue
Block a user