aboutsummaryrefslogtreecommitdiff
path: root/py/lexer.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-06-22 17:40:12 +0100
committerDamien George <damien.p.george@gmail.com>2015-06-22 17:40:12 +0100
commit7f19a39a3b79f552f158020f33c693913b884e7c (patch)
treed36f2451419defaf1c8c03522c05704796b85b61 /py/lexer.c
parenta06c38b486264477e2dd741badd4a2936e80299f (diff)
py: Cast argument for printf to int, to be compatible with more ports.
This allows stmhal to be compiled with MICROPY_DEBUG_PRINTERS.
Diffstat (limited to 'py/lexer.c')
-rw-r--r--py/lexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/lexer.c b/py/lexer.c
index 97c84cf11..3e7d589f6 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("?");
}