Skip to content

Commit 0133c18

Browse files
arthurbdinizccoVeille
authored andcommitted
Fix tests for cross-architecture compatibility
Update test cases that use the int64 minimum value (-9223372036854775808) to avoid overflow errors on 32-bit (i386) architectures. Signed-off-by: Arthur Diniz <[email protected]>
1 parent 68b6824 commit 0133c18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

decode_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ var unmarshalTests = []struct {
244244
},
245245
{
246246
"bin: -0b1000000000000000000000000000000000000000000000000000000000000000",
247-
map[string]any{"bin": -9223372036854775808},
247+
map[string]int64{"bin": -9223372036854775808},
248248
},
249249
{
250250
"decimal: +685_230",
@@ -439,7 +439,7 @@ var unmarshalTests = []struct {
439439
},
440440
{
441441
"int_overflow: 9223372036854775808", // math.MaxInt64 + 1
442-
map[string]int{},
442+
map[string]int64{},
443443
},
444444

445445
// int64

0 commit comments

Comments
 (0)