1
0
mirror of https://github.com/golang/go synced 2024-11-22 17:04:40 -07:00

fix SliceHeader: len and cap are int, not uint32

R=r,iant
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=32215
CL=32222
This commit is contained in:
Russ Cox 2009-07-27 10:59:37 -07:00
parent a225706e5f
commit 22ea3f9e49

View 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.