Skip to content

Commit

Permalink
Fix build on 32bit systems (#4557)
Browse files Browse the repository at this point in the history
Signed-off-by: Mathias Gibbens <gibmat@debian.org>
  • Loading branch information
gibmat committed Jul 25, 2024
1 parent db9cebd commit f41fd20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protoc-gen-openapiv2/internal/genopenapi/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2654,13 +2654,13 @@ func TestValidateDefaultValueType(t *testing.T) {
},
{
"integer",
fmt.Sprint(math.MaxInt32 + 1),
fmt.Sprint(int64(math.MaxInt32) + 1),
"int32",
errors.New("the provided default value \"2147483648\" does not match provided format \"int32\""),
},
{
"integer",
fmt.Sprint(math.MaxInt64),
fmt.Sprint(int64(math.MaxInt64)),
"int64",
nil,
},
Expand Down

0 comments on commit f41fd20

Please sign in to comment.