Skip to content

Commit

Permalink
Fix ExampleValidator test for 32-bit architectures (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyfok authored Mar 30, 2022
1 parent ca21ef5 commit cd4e291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapi3filter/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ paths:
// requests.
squareHandler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
xParam := path.Base(r.URL.Path)
x, err := strconv.Atoi(xParam)
x, err := strconv.ParseInt(xParam, 10, 64)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit cd4e291

Please sign in to comment.