]> Cypherpunks repositories - gostls13.git/commitdiff
fix build
authorRuss Cox <rsc@golang.org>
Thu, 25 Jun 2009 22:15:44 +0000 (15:15 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 25 Jun 2009 22:15:44 +0000 (15:15 -0700)
TBR=r
OCL=30757
CL=30757

src/pkg/reflect/all_test.go

index 84f52ab86f08e11cfa4a4308237f43c0db9dc648..9cfc7e2688a1a188e0ef7595264009a77b4ab34e 100644 (file)
@@ -284,8 +284,8 @@ func TestAll(tt *testing.T) {       // TODO(r): wrap up better
        v1 := NewZeroValue(t1);
        if v1 == nil { panic("V1 is nil"); }
        v1.(PtrValue).SetSub(v);
-       a := v1.Interface().(*[]int32);
-       println(&a, len(a), cap(a));
+       a := *v1.Interface().(*[]int32);
+       println(a, len(a), cap(a));
        for i := 0; i < len(a); i++ {
                v.Elem(i).(Int32Value).Set(int32(i));
        }