diff options
author | Damien George <damien.p.george@gmail.com> | 2015-06-22 17:40:12 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-06-22 17:40:12 +0100 |
commit | 7f19a39a3b79f552f158020f33c693913b884e7c (patch) | |
tree | d36f2451419defaf1c8c03522c05704796b85b61 /py/lexer.c | |
parent | a06c38b486264477e2dd741badd4a2936e80299f (diff) | |
download | micropython-7f19a39a3b79f552f158020f33c693913b884e7c.tar.gz micropython-7f19a39a3b79f552f158020f33c693913b884e7c.zip |
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.c | 2 |
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("?"); } |