mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 10:43:29 +00:00
Update src/reflect/value.go
Co-authored-by: Ayke <aykevanlaethem@gmail.com>
This commit is contained in:
@@ -988,7 +988,7 @@ func (v Value) SetBytes(x []byte) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// copy the header contents over
|
// copy the header contents over
|
||||||
*(*sliceHeader)(v.value) = *(*sliceHeader)(unsafe.Pointer(&x))
|
*(*[]byte)(v.value) = x
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v Value) SetCap(n int) {
|
func (v Value) SetCap(n int) {
|
||||||
|
|||||||
Reference in New Issue
Block a user