mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 14:33:41 +00:00
reflect: fix Copy of non-pointer array with size > 64bits
This commit is contained in:
committed by
Damian Gryski
parent
e98fea0bba
commit
4f96a50fd0
@@ -1712,7 +1712,7 @@ func buflen(v Value) (unsafe.Pointer, uintptr) {
|
||||
buf = hdr.data
|
||||
len = hdr.len
|
||||
case Array:
|
||||
if v.isIndirect() {
|
||||
if v.isIndirect() || v.typecode.Size() > unsafe.Sizeof(uintptr(0)) {
|
||||
buf = v.value
|
||||
} else {
|
||||
buf = unsafe.Pointer(&v.value)
|
||||
|
||||
Reference in New Issue
Block a user