summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
Diffstat (limited to 'py')
-rw-r--r--py/lexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/lexer.c b/py/lexer.c
index 97c84cf118..3e7d589f61 100644
--- a/py/lexer.c
+++ b/py/lexer.c
@@ -772,7 +772,7 @@ void mp_lexer_show_token(const mp_lexer_t *lex) {
unichar c = utf8_get_char(i);
i = utf8_next_char(i);
if (unichar_isprint(c)) {
- printf("%c", c);
+ printf("%c", (int)c);
} else {
printf("?");
}