diff --git a/pyc_string.cpp b/pyc_string.cpp index 3c8befd..8c4bcbd 100644 --- a/pyc_string.cpp +++ b/pyc_string.cpp @@ -94,7 +94,7 @@ void OutputString(PycRef str, char prefix, bool triple, FILE* F, cons fputc(useQuotes ? '"' : '\'', F); } while (len--) { - if (*ch < 0x20 || *ch == 0x7F) { + if ((unsigned char)(*ch) < 0x20 || *ch == 0x7F) { if (*ch == '\r') { fputs("\\r", F); } else if (*ch == '\n') {