From 6271406233585a9178592b0492b190786bf0ee98 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 16 Apr 2021 15:42:39 -0700 Subject: [PATCH] Fix a warning (#2233) --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 88fc418a..cbb0a766 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2400,7 +2400,7 @@ FMT_CONSTEXPR int parse_nonnegative_int(const Char*& begin, const Char* end, FMT_ASSERT(begin != end && '0' <= *begin && *begin <= '9', ""); unsigned value = 0; // Convert to unsigned to prevent a warning. - constexpr unsigned max_int = max_value(); + const unsigned max_int = to_unsigned(max_value()); unsigned big = max_int / 10; do { // Check for overflow.