diff --git a/include/boost/property_tree/detail/ptree_utils.hpp b/include/boost/property_tree/detail/ptree_utils.hpp index c353e08..9d169f0 100644 --- a/include/boost/property_tree/detail/ptree_utils.hpp +++ b/include/boost/property_tree/detail/ptree_utils.hpp @@ -73,7 +73,7 @@ namespace boost { namespace property_tree { namespace detail Str result; while (*text) { - if (*text < 0 || *text > (std::numeric_limits::max)()) + if (*text < 0 || *text > static_cast((std::numeric_limits::max)())) result += '*'; else result += typename Str::value_type(*text);