We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f3d021b + 8d7c176 commit 02583a1Copy full SHA for 02583a1
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
155
else
156
#endif
157
{
158
- overflow_value = (std::numeric_limits<Integer>::max)();
159
- max_digit = (std::numeric_limits<Integer>::max)();
+ overflow_value = static_cast<Unsigned_Integer>((std::numeric_limits<Integer>::max)());
+ max_digit = static_cast<Unsigned_Integer>((std::numeric_limits<Integer>::max)());
160
}
161
162
if (is_negative)
0 commit comments