mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-07 01:32:56 +08:00
Modify unnecessary type conversions
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user