Skip to content

Commit 451a087

Browse files
committed
py: Fix printing of size_t entity; fix qemu-arm for changes to lexer.
1 parent 759cc9b commit 451a087

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

py/lexer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ void mp_lexer_to_next(mp_lexer_t *lex) {
754754

755755
#if MICROPY_DEBUG_PRINTERS
756756
void mp_lexer_show_token(const mp_lexer_t *lex) {
757-
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);
757+
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);
758758
if (lex->vstr.len > 0) {
759759
const byte *i = (const byte *)lex->vstr.buf;
760760
const byte *j = (const byte *)i + lex->vstr.len;

qemu-arm/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void do_str(const char *src) {
3232
}
3333

3434
// parse okay
35-
qstr source_name = mp_lexer_source_name(lex);
35+
qstr source_name = lex->source_name;
3636
mp_lexer_free(lex);
3737
mp_obj_t module_fun = mp_compile(pn, source_name, MP_EMIT_OPT_NONE, true);
3838

0 commit comments

Comments
 (0)