diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 6a6a85f..ee8817d 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -566,7 +566,7 @@ namespace cxxopts throw argument_incorrect_type(text); } - result = result * base + digit; + result = static_cast(result * base + digit); } detail::check_signed_range(negative, result, text); @@ -1091,7 +1091,7 @@ namespace cxxopts auto riter = m_results.find(iter->second); - return riter->second.count(); + return static_cast(riter->second.count()); } const OptionValue&