From f41fd20b7e88ba6993338a0cb2c787f7076113e3 Mon Sep 17 00:00:00 2001 From: Mathias Gibbens Date: Thu, 25 Jul 2024 22:20:53 +0000 Subject: [PATCH] Fix build on 32bit systems (#4557) Signed-off-by: Mathias Gibbens --- protoc-gen-openapiv2/internal/genopenapi/template_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protoc-gen-openapiv2/internal/genopenapi/template_test.go b/protoc-gen-openapiv2/internal/genopenapi/template_test.go index 24faac30ed8..3767cf52f0a 100644 --- a/protoc-gen-openapiv2/internal/genopenapi/template_test.go +++ b/protoc-gen-openapiv2/internal/genopenapi/template_test.go @@ -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, },