summaryrefslogtreecommitdiffstatshomepage
path: root/stm/lexerfatfs.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-25 13:51:19 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-25 13:51:19 +0000
commitb829b5caecd1ba4fbc30e03978776d2c868dd67b (patch)
treeb3135377105920ff382d7c7ebc2117655b4d00da /stm/lexerfatfs.c
parente0722ee9d94c0e812a474e349ded5147f6b869f6 (diff)
downloadmicropython-b829b5caecd1ba4fbc30e03978776d2c868dd67b.tar.gz
micropython-b829b5caecd1ba4fbc30e03978776d2c868dd67b.zip
Implement mp_parse_node_free; print properly repr(string).
Diffstat (limited to 'stm/lexerfatfs.c')
-rw-r--r--stm/lexerfatfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stm/lexerfatfs.c b/stm/lexerfatfs.c
index bf82349f35..026173db25 100644
--- a/stm/lexerfatfs.c
+++ b/stm/lexerfatfs.c
@@ -49,7 +49,7 @@ mp_lexer_t *mp_lexer_new_from_file(const char *filename) {
f_read(&fb->fp, fb->buf, sizeof(fb->buf), &n);
fb->len = n;
fb->pos = 0;
- return mp_lexer_new(filename, fb, (mp_lexer_stream_next_char_t)file_buf_next_char, (mp_lexer_stream_close_t)file_buf_close);
+ return mp_lexer_new(qstr_from_str(filename), fb, (mp_lexer_stream_next_char_t)file_buf_next_char, (mp_lexer_stream_close_t)file_buf_close);
}
/******************************************************************************/