mirror of
https://github.com/golang/go
synced 2024-11-25 21:47:59 -07:00
Fix bug where typeArrayMap was using the address of the
pointer to the Type instead of the address of the Type. R=rsc APPROVED=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=32265 CL=32279
This commit is contained in:
parent
18840f5429
commit
eaa25ac16b
@ -49,7 +49,7 @@ func hashTypeArray(key []Type) uintptr {
|
||||
if t == nil {
|
||||
continue;
|
||||
}
|
||||
addr := reflect.NewValue(t).Addr();
|
||||
addr := reflect.NewValue(t).(*reflect.PtrValue).Get();
|
||||
hash ^= addr;
|
||||
}
|
||||
return hash;
|
||||
|
Loading…
Reference in New Issue
Block a user