Skip to content

Commit

Permalink
Fix different signedness comparison on Arm
Browse files Browse the repository at this point in the history
wchar_t is an unsigned on Arm, therefore a promotion is necessary here to correctly perform the comparison

close #94
  • Loading branch information
aladram authored and madmongo1 committed Jan 24, 2022
1 parent 5919907 commit 88a3b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/property_tree/detail/ptree_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 88a3b0b

Please sign in to comment.