From 88a3b0ba8a6cd4ddf35f10d841bde9878241d64a Mon Sep 17 00:00:00 2001 From: Anis Ladram Date: Fri, 14 Jan 2022 14:03:12 +0100 Subject: [PATCH] Fix different signedness comparison on Arm wchar_t is an unsigned on Arm, therefore a promotion is necessary here to correctly perform the comparison close #94 --- include/boost/property_tree/detail/ptree_utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);