From eaa25ac16ba4949f970fd1d20cec34c317cb92b9 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Tue, 28 Jul 2009 09:58:31 -0700 Subject: [PATCH] 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 --- usr/austin/eval/type.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/austin/eval/type.go b/usr/austin/eval/type.go index 2a5f22e1be4..cc107115aa7 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;