Fix gcc error: expected primary-expression before ‘unsigned’

This commit is contained in:
David Capello 2024-02-16 14:49:41 -03:00
parent 644b0021fb
commit 0134c74926

View File

@ -114,9 +114,9 @@ std::string parse_html(const std::string& str)
// anti-aliasing (using a TTF font) as the Aseprite font doesn't
// contain this character yet.
else if (i+2 < str.size() &&
unsigned char(str[i ]) == 0xe2 &&
unsigned char(str[i+1]) == 0x80 &&
unsigned char(str[i+2]) == 0x99) {
((unsigned char)str[i ]) == 0xe2 &&
((unsigned char)str[i+1]) == 0x80 &&
((unsigned char)str[i+2]) == 0x99) {
result.push_back('\'');
i += 3;
paraOpen = false;