Skip to content

Commit cd4e291

Browse files
authored
Fix ExampleValidator test for 32-bit architectures (#516)
1 parent ca21ef5 commit cd4e291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi3filter/middleware_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ paths:
420420
// requests.
421421
squareHandler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
422422
xParam := path.Base(r.URL.Path)
423-
x, err := strconv.Atoi(xParam)
423+
x, err := strconv.ParseInt(xParam, 10, 64)
424424
if err != nil {
425425
panic(err)
426426
}

0 commit comments

Comments
 (0)