summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-02-29 13:44:57 -0500
committerKyle Gunger <kgunger12@gmail.com>2024-02-29 13:44:57 -0500
commit577e8a4a9424dcc76694effab07963c696d6ce37 (patch)
tree292eb1bf46305ff4602ddf14e466eb73a101262d
parentfd8921c68ba083fb47c628874b12253e00569fd0 (diff)
mod error for literals
-rw-r--r--compiler.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler.c b/compiler.c
index bccf0e3..05089bb 100644
--- a/compiler.c
+++ b/compiler.c
@@ -4099,6 +4099,7 @@ Variable _eval_literal(Scope *s, CompData *data, Vector *tokens, size_t literal)
var_end(&out);
out = var_init(label, typ_get_inbuilt("uint8"));
+ out.mod = s->current;
out.location = LOC_DATA;
free(label);
int arr_t = str_dat.count;