diff --git a/test/scan-test.cc b/test/scan-test.cc index 061f4abc..29387a06 100644 --- a/test/scan-test.cc +++ b/test/scan-test.cc @@ -6,7 +6,7 @@ // For the license information refer to format.h. #include -#include +#include #include "fmt/format.h" #include "gmock.h" @@ -25,7 +25,7 @@ struct scan_args { template scan_args(const std::array& store) : size(N), data(store.data()) { - static_assert(N < std::numeric_limits::max(), "too many arguments"); + static_assert(N < INT_MAX, "too many arguments"); } };