commit | 7f19a39a3b79f552f158020f33c693913b884e7c | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Mon Jun 22 17:40:12 2015 +0100 |
committer | Damien George <damien.p.george@gmail.com> | Mon Jun 22 17:40:12 2015 +0100 |
tree | d36f2451419defaf1c8c03522c05704796b85b61 | |
parent | a06c38b486264477e2dd741badd4a2936e80299f [diff] [blame] |
py: Cast argument for printf to int, to be compatible with more ports. This allows stmhal to be compiled with MICROPY_DEBUG_PRINTERS.
diff --git a/py/lexer.c b/py/lexer.c index 97c84cf..3e7d589 100644 --- a/py/lexer.c +++ b/py/lexer.c
@@ -772,7 +772,7 @@ unichar c = utf8_get_char(i); i = utf8_next_char(i); if (unichar_isprint(c)) { - printf("%c", c); + printf("%c", (int)c); } else { printf("?"); }