Modify unnecessary type conversions

This commit is contained in:
GouJie
2024-01-17 14:09:58 +08:00
committed by finley
parent e4c9563776
commit b63deb62bd
2 changed files with 4 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ func (locks *Locks) spread(hashCode uint32) uint32 {
panic("dict is nil")
}
tableSize := uint32(len(locks.table))
return (tableSize - 1) & uint32(hashCode)
return (tableSize - 1) & hashCode
}
// Lock obtains exclusive lock for writing