Only replace chars >= 0 in fix_atom_text
If char is signed, the test was invalid Fixes #3389
This commit is contained in:
parent
f682d8c01f
commit
e3a5856284
|
@ -325,7 +325,7 @@ String fix_atom_text(StringView str)
|
|||
for (auto it = str.begin(), end = str.end(); it != end; ++it)
|
||||
{
|
||||
char c = *it;
|
||||
if (c <= 0x1F)
|
||||
if (c >= 0 and c <= 0x1F)
|
||||
{
|
||||
res += StringView{pos, it};
|
||||
res += String{Codepoint{(uint32_t)(0x2400 + c)}};
|
||||
|
|
Loading…
Reference in New Issue
Block a user