summaryrefslogtreecommitdiff
path: root/compiler.c
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-06-25 00:20:04 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-06-25 00:20:04 -0400
commit0b0659ec65c8167548c3f32707b5bde249d6a458 (patch)
treeb6ca9f1edad571637ce02d77d734f94fbe95345a /compiler.c
parent1e408524f0371ea286ce93a087e3dd5d0f9fd4af (diff)
Fix inline string literals in modulesHEADmain
Diffstat (limited to 'compiler.c')
-rw-r--r--compiler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler.c b/compiler.c
index 15c37b7..d64d119 100644
--- a/compiler.c
+++ b/compiler.c
@@ -4854,7 +4854,7 @@ Variable _eval_literal(Scope *s, CompData *data, Vector *tokens, size_t literal)
vect_push_string(&data->data, "#ptr\n\n");
out = var_init(label, typ_get_inbuilt("uint8"));
- out.mod = s->current;
+ out.mod = NULL;
out.location = LOC_DATA;
free(label);
int arr_t = PTYPE_ARR;