runtime: properly turn pointer into empty interface when hashing

This commit is contained in:
Damian Gryski
2023-02-24 23:48:31 -08:00
committed by Ayke
parent cfe971d723
commit 7b44fcd865
3 changed files with 36 additions and 1 deletions
+1 -1
View File
@@ -563,7 +563,7 @@ func hashmapInterfaceHash(itf interface{}, seed uintptr) uint32 {
}
func hashmapInterfacePtrHash(iptr unsafe.Pointer, size uintptr, seed uintptr) uint32 {
_i := *(*_interface)(iptr)
_i := *(*interface{})(iptr)
return hashmapInterfaceHash(_i, seed)
}