mirror of
https://github.com/golang/go
synced 2024-11-22 21:40:03 -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:
parent
a225706e5f
commit
22ea3f9e49
@ -519,8 +519,8 @@ func (v *ArrayValue) Elem(i int) Value {
|
|||||||
// runtime representation of slice
|
// runtime representation of slice
|
||||||
type SliceHeader struct {
|
type SliceHeader struct {
|
||||||
Data uintptr;
|
Data uintptr;
|
||||||
Len uint32;
|
Len int;
|
||||||
Cap uint32;
|
Cap int;
|
||||||
}
|
}
|
||||||
|
|
||||||
// A SliceValue represents a slice.
|
// A SliceValue represents a slice.
|
||||||
|
Loading…
Reference in New Issue
Block a user