mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 19:17:47 +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)
|
||||
if size > unsafe.Sizeof(uintptr(0)) {
|
||||
ptr = alloc(size, nil)
|
||||
v.value = ptr
|
||||
}
|
||||
|
||||
switch size {
|
||||
|
||||
Reference in New Issue
Block a user