2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix build of the new TWidgetHelper<> for GCC, finally.

Also fixed a char-related warning in codegen project.
This commit is contained in:
John Preston
2017-02-13 02:17:06 +03:00
parent 232ed0a7c0
commit 25f90b5159
2 changed files with 4 additions and 4 deletions

View File

@@ -127,7 +127,7 @@ QString stringToEncodedString(const QString &str) {
} else if (ch == '"' || ch == '\\') {
writingHexEscapedCharacters = false;
result.append('\\').append(ch);
} else if (ch < 32 || ch > 127) {
} else if (ch < 32 || static_cast<uchar>(ch) > 127) {
writingHexEscapedCharacters = true;
result.append("\\x").append(hexFirstChar(ch)).append(hexSecondChar(ch));
} else {