diff --git a/include/duckhandy/lexical_cast.hpp b/include/duckhandy/lexical_cast.hpp index 1829771..31bef99 100644 --- a/include/duckhandy/lexical_cast.hpp +++ b/include/duckhandy/lexical_cast.hpp @@ -259,7 +259,7 @@ namespace dhandy { template std::size_t hex::count_digits (T parValue) { - return std::max(((sizeof(parValue) * CHAR_BIT - dhandy::implem::count_leading_zeroes::type>(make_unsigned(parValue))) + (CHAR_BIT / 2 - 1)) / (CHAR_BIT / 2), 1); + return std::max(((sizeof(parValue) * CHAR_BIT - dhandy::implem::count_leading_zeroes(parValue)) + (CHAR_BIT / 2 - 1)) / (CHAR_BIT / 2), 1); } } //namespace implem