1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-03-01 00:35:28 +08:00

fix: fix resize bug in HashMap

This commit is contained in:
dudaodong
2022-08-25 14:04:26 +08:00
parent 1acf977b24
commit 9107eb4b32
2 changed files with 14 additions and 0 deletions
+2
View File
@@ -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 {