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
This commit is contained in:
Anis Ladram
2022-01-14 14:03:12 +01:00
committed by Richard Hodges
parent 5919907291
commit 88a3b0ba8a

View File

@@ -73,7 +73,7 @@ namespace boost { namespace property_tree { namespace detail
Str result;
while (*text)
{
if (*text < 0 || *text > (std::numeric_limits<char>::max)())
if (*text < 0 || *text > static_cast<char_type>((std::numeric_limits<char>::max)()))
result += '*';
else
result += typename Str::value_type(*text);