mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 03:53:42 +00:00
reflect: track flags when size changes from fits-in-pointer to not
Fixes #3328
This commit is contained in:
@@ -507,7 +507,7 @@ func (v Value) Field(i int) Value {
|
||||
ptr := unsafe.Pointer(uintptr(v.value) + structField.Offset)
|
||||
value := unsafe.Pointer(loadValue(ptr, fieldSize))
|
||||
return Value{
|
||||
flags: 0,
|
||||
flags: flags &^ valueFlagIndirect,
|
||||
typecode: fieldType,
|
||||
value: value,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user