diff options
-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 { |