From: Austin Clements Date: Tue, 28 Jul 2009 16:58:31 +0000 (-0700) Subject: Fix bug where typeArrayMap was using the address of the X-Git-Tag: weekly.2009-11-06~1053 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=eaa25ac16ba4949f970fd1d20cec34c317cb92b9;p=gostls13.git 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 --- diff --git a/usr/austin/eval/type.go b/usr/austin/eval/type.go index 2a5f22e1be..cc107115aa 100644 --- a/usr/austin/eval/type.go +++ b/usr/austin/eval/type.go @@ -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;