From 7f19a39a3b79f552f158020f33c693913b884e7c Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 22 Jun 2015 17:40:12 +0100 Subject: [PATCH] py: Cast argument for printf to int, to be compatible with more ports. This allows stmhal to be compiled with MICROPY_DEBUG_PRINTERS. --- py/lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("?"); }