From f3ec39d1ea0f23466c2421d55337eedc315940f4 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 7 Jul 2009 11:03:40 -0700 Subject: [PATCH] base64_test: use new reflect interface (CL 31107) R=austin DELTA=3 (0 added, 0 deleted, 3 changed) OCL=31112 CL=31282 --- src/pkg/base64/base64_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pkg/base64/base64_test.go b/src/pkg/base64/base64_test.go index a9e3738ceb..6ebaa235d5 100644 --- a/src/pkg/base64/base64_test.go +++ b/src/pkg/base64/base64_test.go @@ -50,9 +50,9 @@ var bigtest = testpair { } func testEqual(t *testing.T, msg string, args ...) bool { - v := reflect.NewValue(args).(reflect.StructValue); - v1 := v.Field(v.Len() - 2); - v2 := v.Field(v.Len() - 1); + v := reflect.NewValue(args).(*reflect.StructValue); + v1 := v.Field(v.NumField() - 2); + v2 := v.Field(v.NumField() - 1); if v1.Interface() != v2.Interface() { t.Errorf(msg, args); return false;