py: Cast argument for printf to int, to be compatible with more ports.

This allows stmhal to be compiled with MICROPY_DEBUG_PRINTERS.
pull/1341/merge
Damien George 2015-06-22 17:40:12 +01:00
rodzic a06c38b486
commit 7f19a39a3b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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("?");
}