diff --git a/include/boost/charconv/to_chars.hpp b/include/boost/charconv/to_chars.hpp index c0f7279..f6a4448 100644 --- a/include/boost/charconv/to_chars.hpp +++ b/include/boost/charconv/to_chars.hpp @@ -145,15 +145,10 @@ BOOST_CXX14_CONSTEXPR to_chars_result to_chars_integer_impl(char* first, char* l static_cast(value) <= (std::numeric_limits::max)()) { const auto converted_value = static_cast(value); - const auto num_sig_chars = num_digits(converted_value); const auto x = static_cast(converted_value / UINT64_C(10000000000)); const auto y = static_cast(converted_value % UINT64_C(10000000000)); const int first_value_chars = num_digits(x); - const int second_value_chars = num_digits(y); - - // TODO: Remove when done with debugging - assert(first_value_chars + second_value_chars <= num_sig_chars); decompose32(x, buffer);