Skip to content

Commit c1e9caa

Browse files
committed
Pass unsigned value instead of signed value
1 parent 9bd3fac commit c1e9caa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/charconv/detail/to_chars_integer_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ BOOST_CHARCONV_CONSTEXPR to_chars_result to_chars_128integer_impl(char* first, c
270270
// If the value fits into 64 bits use the other method of processing
271271
if (converted_value < (std::numeric_limits<std::uint64_t>::max)())
272272
{
273-
return to_chars_integer_impl(first, last, static_cast<std::uint64_t>(value));
273+
return to_chars_integer_impl(first, last, static_cast<std::uint64_t>(converted_value));
274274
}
275275

276276
constexpr std::uint32_t ten_9 = UINT32_C(1000000000);

0 commit comments

Comments
 (0)