]> Cypherpunks repositories - gostls13.git/commitdiff
fix SliceHeader: len and cap are int, not uint32
authorRuss Cox <rsc@golang.org>
Mon, 27 Jul 2009 17:59:37 +0000 (10:59 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 27 Jul 2009 17:59:37 +0000 (10:59 -0700)
R=r,iant
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=32215
CL=32222

src/pkg/reflect/value.go

index b3bab5f0bf2c78ba8140e7b61233877ef1e8e434..00772a87c2f9f7a5724aec53a92d62d53bece083 100644 (file)
@@ -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.