summaryrefslogtreecommitdiffstatshomepage
path: root/shared/memzip/lexermemzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'shared/memzip/lexermemzip.c')
-rw-r--r--shared/memzip/lexermemzip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/memzip/lexermemzip.c b/shared/memzip/lexermemzip.c
index 6b26961bdc..1915a04c01 100644
--- a/shared/memzip/lexermemzip.c
+++ b/shared/memzip/lexermemzip.c
@@ -5,15 +5,15 @@
#include "py/mperrno.h"
#include "memzip.h"
-mp_lexer_t *mp_lexer_new_from_file(const char *filename)
+mp_lexer_t *mp_lexer_new_from_file(qstr filename)
{
void *data;
size_t len;
- if (memzip_locate(filename, &data, &len) != MZ_OK) {
+ if (memzip_locate(qstr_str(filename), &data, &len) != MZ_OK) {
mp_raise_OSError(MP_ENOENT);
}
- return mp_lexer_new_from_str_len(qstr_from_str(filename), (const char *)data, (mp_uint_t)len, 0);
+ return mp_lexer_new_from_str_len(filename, (const char *)data, (mp_uint_t)len, 0);
}