summaryrefslogtreecommitdiffstatshomepage
path: root/teensy/lexermemzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'teensy/lexermemzip.c')
-rw-r--r--teensy/lexermemzip.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/teensy/lexermemzip.c b/teensy/lexermemzip.c
index 2f808ee429..3e15717acf 100644
--- a/teensy/lexermemzip.c
+++ b/teensy/lexermemzip.c
@@ -2,6 +2,8 @@
#include <stdlib.h>
#include "misc.h"
+#include "mpconfig.h"
+#include "qstr.h"
#include "lexer.h"
#include "memzip.h"
@@ -13,6 +15,7 @@ mp_lexer_t *mp_lexer_new_from_memzip_file(const char *filename)
if (memzip_locate(filename, &data, &len) != MZ_OK) {
return NULL;
}
- return mp_lexer_new_from_str_len(filename, (const char *)data, (uint)len, 0);
+
+ return mp_lexer_new_from_str_len(qstr_from_str(filename), (const char *)data, (uint)len, 0);
}