1
0
mirror of https://github.com/golang/go synced 2024-11-22 06:14:39 -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:
Austin Clements 2009-07-28 09:58:31 -07:00
parent 18840f5429
commit eaa25ac16b

View File

@ -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;