mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 21:13:39 +00:00
reflect: fix Addr() indirect value/flags and add tests.
This commit is contained in:
@@ -223,7 +223,7 @@ func (v Value) Addr() Value {
|
||||
|
||||
return Value{
|
||||
typecode: pointerTo(v.typecode),
|
||||
value: unsafe.Pointer(&v.value),
|
||||
value: v.value,
|
||||
flags: v.flags ^ valueFlagIndirect,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user