From 8d7c1763a4c9898b6933a4ad3df6763f87ec56d6 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Mon, 2 Mar 2026 09:22:27 -0500 Subject: [PATCH] Fix sign conversion when Integer is a signed type --- include/boost/charconv/detail/from_chars_integer_impl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/charconv/detail/from_chars_integer_impl.hpp b/include/boost/charconv/detail/from_chars_integer_impl.hpp index 69d5e5f9..94d53af6 100644 --- a/include/boost/charconv/detail/from_chars_integer_impl.hpp +++ b/include/boost/charconv/detail/from_chars_integer_impl.hpp @@ -155,8 +155,8 @@ BOOST_CXX14_CONSTEXPR from_chars_result from_chars_integer_impl(const char* firs else #endif { - overflow_value = (std::numeric_limits::max)(); - max_digit = (std::numeric_limits::max)(); + overflow_value = static_cast((std::numeric_limits::max)()); + max_digit = static_cast((std::numeric_limits::max)()); } if (is_negative)