Skip to content

Commit 7f19a39

Browse files
committed
py: Cast argument for printf to int, to be compatible with more ports.
This allows stmhal to be compiled with MICROPY_DEBUG_PRINTERS.
1 parent a06c38b commit 7f19a39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/lexer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ void mp_lexer_show_token(const mp_lexer_t *lex) {
772772
unichar c = utf8_get_char(i);
773773
i = utf8_next_char(i);
774774
if (unichar_isprint(c)) {
775-
printf("%c", c);
775+
printf("%c", (int)c);
776776
} else {
777777
printf("?");
778778
}

0 commit comments

Comments
 (0)