Skip to content

Commit

Permalink
Fix gcc error: expected primary-expression before ‘unsigned’
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Feb 16, 2024
1 parent 644b002 commit 0134c74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/ui/news_listbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0134c74

Please sign in to comment.