Skip to content

Commit 6bd2747

Browse files
authored
Merge pull request #276 from boostorg/275
Fix log2 computation
2 parents e39c280 + ad73f0b commit 6bd2747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/charconv/detail/from_chars_integer_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ BOOST_CXX14_CONSTEXPR from_chars_result from_chars_integer_impl(const char* firs
222222
#if defined(BOOST_CHARCONV_HAS_INT128) && !defined(__GLIBCXX_TYPE_INT_N_0)
223223
constexpr std::ptrdiff_t nd_2 = std::is_same<Integer, boost::int128_type>::value ? 127 :
224224
std::is_same<Integer, boost::uint128_type>::value ? 128 :
225-
std::numeric_limits<Integer>::digits10;
225+
std::numeric_limits<Integer>::digits;
226226
#else
227227
constexpr std::ptrdiff_t nd_2 = std::numeric_limits<Integer>::digits;
228228
#endif

0 commit comments

Comments
 (0)