]> Cypherpunks repositories - gostls13.git/commitdiff
Fix bug where typeArrayMap was using the address of the
authorAustin Clements <aclements@csail.mit.edu>
Tue, 28 Jul 2009 16:58:31 +0000 (09:58 -0700)
committerAustin Clements <aclements@csail.mit.edu>
Tue, 28 Jul 2009 16:58:31 +0000 (09:58 -0700)
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

index 2a5f22e1be41eef9042afc6a3f178ac29577404d..cc107115aa7d8e9b080d5038edf555ff515e468d 100644 (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;