diff options
author | Damian Gryski <[email protected]> | 2023-03-25 15:09:51 -0700 |
---|---|---|
committer | Ayke <[email protected]> | 2023-03-27 18:53:37 +0200 |
commit | 2c0f61cad10f32f40fe34561ec4539b465f43bf3 (patch) | |
tree | a231b77f8ab44997344a4768a92d434c6052c9cb | |
parent | 97ece754f6df008eebafbb00e69124d7a0ed6690 (diff) | |
download | tinygo-2c0f61cad10f32f40fe34561ec4539b465f43bf3.tar.gz tinygo-2c0f61cad10f32f40fe34561ec4539b465f43bf3.zip |
reflect: fix bug found by Convert() tests on wasi
-rw-r--r-- | src/reflect/value.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/reflect/value.go b/src/reflect/value.go index c9c939c0e..487e0d82b 100644 --- a/src/reflect/value.go +++ b/src/reflect/value.go @@ -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 { |