From 577e8a4a9424dcc76694effab07963c696d6ce37 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Thu, 29 Feb 2024 13:44:57 -0500 Subject: mod error for literals --- compiler.c | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler.c') 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; -- cgit v1.2.3