mirror of
https://github.com/boostorg/property_tree.git
synced 2026-02-20 15:02:13 +00:00
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:
committed by
Richard Hodges
parent
5919907291
commit
88a3b0ba8a
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user