From 7cbcb2a994bb3571caa7a8e76104c320cf4fb664 Mon Sep 17 00:00:00 2001 From: makeworld Date: Mon, 15 Sep 2025 16:39:03 -0400 Subject: [PATCH] use actual negative zero Signed-off-by: Cole Anthony Capilongo cole@hypha.coop --- decode_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decode_test.go b/decode_test.go index 7ef6f510..b3644787 100644 --- a/decode_test.go +++ b/decode_test.go @@ -2085,8 +2085,8 @@ var unmarshalFloatTests = []unmarshalFloatTest{ }, { data: mustHexDecode("f98000"), - wantInterfaceValue: float64(-0.0), //nolint:staticcheck // we know -0.0 is 0.0 in Go - wantValues: []any{float32(-0.0), float64(-0.0)}, //nolint:staticcheck // we know -0.0 is 0.0 in Go + wantInterfaceValue: math.Copysign(0, -1), + wantValues: []any{float32(math.Copysign(0, -1)), math.Copysign(0, -1)}, }, { data: mustHexDecode("f93c00"),