Skip to content

Commit f41fd20

Browse files
authored
Fix build on 32bit systems (#4557)
Signed-off-by: Mathias Gibbens <gibmat@debian.org>
1 parent db9cebd commit f41fd20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

protoc-gen-openapiv2/internal/genopenapi/template_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2654,13 +2654,13 @@ func TestValidateDefaultValueType(t *testing.T) {
26542654
},
26552655
{
26562656
"integer",
2657-
fmt.Sprint(math.MaxInt32 + 1),
2657+
fmt.Sprint(int64(math.MaxInt32) + 1),
26582658
"int32",
26592659
errors.New("the provided default value \"2147483648\" does not match provided format \"int32\""),
26602660
},
26612661
{
26622662
"integer",
2663-
fmt.Sprint(math.MaxInt64),
2663+
fmt.Sprint(int64(math.MaxInt64)),
26642664
"int64",
26652665
nil,
26662666
},

0 commit comments

Comments
 (0)