summaryrefslogtreecommitdiff
path: root/examples/embedding/hello-embed.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-09-14 13:33:08 +1000
committerDamien George <damien.p.george@gmail.com>2018-09-14 13:33:08 +1000
commit0f4d595bebb82cfdd6264e1d18455faa0502ff31 (patch)
treea4fc3a66a6890f01c777b1f5dddcad969297c5b2 /examples/embedding/hello-embed.c
parent1a2c511e5d0841a25c5e86f41dbfc50d94a18b50 (diff)
examples/embedding: Fix hard-coded MP_QSTR_ value.
Diffstat (limited to 'examples/embedding/hello-embed.c')
-rw-r--r--examples/embedding/hello-embed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/embedding/hello-embed.c b/examples/embedding/hello-embed.c
index 51c4108c2..965963096 100644
--- a/examples/embedding/hello-embed.c
+++ b/examples/embedding/hello-embed.c
@@ -38,7 +38,7 @@ static char heap[16384];
mp_obj_t execute_from_str(const char *str) {
nlr_buf_t nlr;
if (nlr_push(&nlr) == 0) {
- qstr src_name = 0/*MP_QSTR_*/;
+ qstr src_name = 1/*MP_QSTR_*/;
mp_lexer_t *lex = mp_lexer_new_from_str_len(src_name, str, strlen(str), false);
mp_parse_tree_t pt = mp_parse(lex, MP_PARSE_FILE_INPUT);
mp_obj_t module_fun = mp_compile(&pt, src_name, MP_EMIT_OPT_NONE, false);