Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
7f19a39a
Commit
7f19a39a
authored
Jun 22, 2015
by
Damien George
Browse files
py: Cast argument for printf to int, to be compatible with more ports.
This allows stmhal to be compiled with MICROPY_DEBUG_PRINTERS.
parent
a06c38b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/lexer.c
View file @
7f19a39a
...
...
@@ -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
(
"?"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment