From 22ea3f9e49da1e3b4fe28af00befa0cdaec6743a Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 27 Jul 2009 10:59:37 -0700 Subject: [PATCH] fix SliceHeader: len and cap are int, not uint32 R=r,iant DELTA=2 (0 added, 0 deleted, 2 changed) OCL=32215 CL=32222 --- src/pkg/reflect/value.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg/reflect/value.go b/src/pkg/reflect/value.go index b3bab5f0bf2..00772a87c2f 100644 --- a/src/pkg/reflect/value.go +++ b/src/pkg/reflect/value.go @@ -519,8 +519,8 @@ func (v *ArrayValue) Elem(i int) Value { // runtime representation of slice type SliceHeader struct { Data uintptr; - Len uint32; - Cap uint32; + Len int; + Cap int; } // A SliceValue represents a slice.