diff --git a/include/boost/charconv/detail/integer_search_trees.hpp b/include/boost/charconv/detail/integer_search_trees.hpp index 41f23fb..f014567 100644 --- a/include/boost/charconv/detail/integer_search_trees.hpp +++ b/include/boost/charconv/detail/integer_search_trees.hpp @@ -157,9 +157,10 @@ BOOST_CXX14_CONSTEXPR int num_digits(std::uint64_t x) noexcept #ifdef __GLIBCXX_TYPE_INT_N_0 static constexpr std::array powers_of_10 = {{ - 1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000, 10000000000, - 100000000000, 1000000000000, 10000000000000, 100000000000000, 1000000000000000, 10000000000000000, - 100000000000000000, 1000000000000000000, 10000000000000000000 + UINT64_C(1), UINT64_C(10), UINT64_C(100), UINT64_C(1000), UINT64_C(10000), UINT64_C(100000), UINT64_C(1000000), + UINT64_C(10000000), UINT64_C(100000000), UINT64_C(1000000000), UINT64_C(10000000000), UINT64_C(100000000000), + UINT64_C(1000000000000), UINT64_C(10000000000000), UINT64_C(100000000000000), UINT64_C(1000000000000000), + UINT64_C(10000000000000000), UINT64_C(100000000000000000), UINT64_C(1000000000000000000), UINT64_C(10000000000000000000) }}; // Assume that if someone is using 128 bit ints they are favoring the top end of the range