Several bug fixes.

This commit is contained in:
krahets
2023-09-24 20:38:21 +08:00
parent e3773b7f76
commit ff8e7ceec5
19 changed files with 19 additions and 19 deletions

View File

@@ -28,7 +28,7 @@ func newHashMapChaining() *hashMapChaining {
return &hashMapChaining{
size: 0,
capacity: 4,
loadThres: 2 / 3.0,
loadThres: 2.0 / 3.0,
extendRatio: 2,
buckets: buckets,
}

View File

@@ -25,7 +25,7 @@ func newHashMapOpenAddressing() *hashMapOpenAddressing {
return &hashMapOpenAddressing{
size: 0,
capacity: 4,
loadThres: 2 / 3.0,
loadThres: 2.0 / 3.0,
extendRatio: 2,
buckets: buckets,
removed: pair{