mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 11:13:27 +00:00
reflect: fix bug found by Convert() tests on wasi
This commit is contained in:
@@ -1271,6 +1271,7 @@ func makeFloat(flags valueFlags, f float64, t *rawType) Value {
|
|||||||
ptr := unsafe.Pointer(&v.value)
|
ptr := unsafe.Pointer(&v.value)
|
||||||
if size > unsafe.Sizeof(uintptr(0)) {
|
if size > unsafe.Sizeof(uintptr(0)) {
|
||||||
ptr = alloc(size, nil)
|
ptr = alloc(size, nil)
|
||||||
|
v.value = ptr
|
||||||
}
|
}
|
||||||
|
|
||||||
switch size {
|
switch size {
|
||||||
|
|||||||
Reference in New Issue
Block a user