mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue