Skip to content

Commit d3fe145

Browse files
committed
Use explicit integer types for FuzzDecodeValue.
1 parent ec45224 commit d3fe145

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bson/decode_value_fuzz_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ func FuzzDecodeValue(f *testing.F) {
2222
// Also seed the fuzz corpus with special values that we want to test.
2323
values := []any{
2424
// int32, including max and min values.
25-
int32(0), math.MaxInt32, math.MinInt32,
25+
int32(0), int32(math.MaxInt32), int32(math.MinInt32),
2626
// int64, including max and min values.
27-
int64(0), math.MaxInt64, math.MinInt64,
27+
int64(0), int64(math.MaxInt64), int64(math.MinInt64),
2828
// string, including empty and large string.
2929
"", strings.Repeat("z", 10_000),
3030
// map

0 commit comments

Comments
 (0)