summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-12-05 22:50:16 +0000
committerDamien George <damien.p.george@gmail.com>2014-12-05 22:50:16 +0000
commit451a0870753be89f5a284fd39727705a3ad2109b (patch)
tree5b7dc84e42ece7da70b82b82ec4ca803f1029602 /py
parent759cc9bcc8269e8c8ae5df9cc8504209eebbbf8d (diff)
downloadmicropython-451a0870753be89f5a284fd39727705a3ad2109b.tar.gz
micropython-451a0870753be89f5a284fd39727705a3ad2109b.zip
py: Fix printing of size_t entity; fix qemu-arm for changes to lexer.
Diffstat (limited to 'py')
-rw-r--r--py/lexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/lexer.c b/py/lexer.c
index a93d8ad0d0..bc1b8babf3 100644
--- a/py/lexer.c
+++ b/py/lexer.c
@@ -754,7 +754,7 @@ void mp_lexer_to_next(mp_lexer_t *lex) {
#if MICROPY_DEBUG_PRINTERS
void mp_lexer_show_token(const mp_lexer_t *lex) {
- printf("(" UINT_FMT ":" UINT_FMT ") kind:%u str:%p len:%u", lex->tok_line, lex->tok_column, lex->tok_kind, lex->vstr.buf, lex->vstr.len);
+ printf("(" UINT_FMT ":" UINT_FMT ") kind:%u str:%p len:%zu", lex->tok_line, lex->tok_column, lex->tok_kind, lex->vstr.buf, lex->vstr.len);
if (lex->vstr.len > 0) {
const byte *i = (const byte *)lex->vstr.buf;
const byte *j = (const byte *)i + lex->vstr.len;