mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
Properly check range when chars are signed
This commit is contained in:
parent
1f34a6fa2b
commit
29edae5685
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ void OutputString(PycRef<PycString> str, char prefix, bool triple, FILE* F)
|
|||
} else {
|
||||
fprintf(F, "\\x%x", (*ch & 0xFF));
|
||||
}
|
||||
} else if (*ch >= 0x80) {
|
||||
} else if ((unsigned char)(*ch) >= 0x80) {
|
||||
if (str->type() == PycObject::TYPE_UNICODE) {
|
||||
// Unicode stored as UTF-8... Let the stream interpret it
|
||||
fputc(*ch, F);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue