From a5ffa735db790e4b79efdcecd52c9962f9908879 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 15 May 2019 10:20:51 -0700 Subject: [PATCH] Fix gcc 4.4 build --- test/scan-test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); } };