summaryrefslogtreecommitdiff
path: root/tnslc/compile/var.tnsl
diff options
context:
space:
mode:
authorKai Gunger <kgunger12@gmail.com>2026-04-30 02:02:02 -0400
committerKai Gunger <kgunger12@gmail.com>2026-04-30 02:02:02 -0400
commitedba04ae6266536cf7285570eb31245298a5123f (patch)
treeea6dd2e14413ef90a78000ca9aa43094af07f7ea /tnslc/compile/var.tnsl
parent31b1dc66982320aa3f4279bd066129e2a110e543 (diff)
[tnslc] small fix for finding module vars
Diffstat (limited to 'tnslc/compile/var.tnsl')
-rw-r--r--tnslc/compile/var.tnsl5
1 files changed, 5 insertions, 0 deletions
diff --git a/tnslc/compile/var.tnsl b/tnslc/compile/var.tnsl
index e5e6bae..cc5b409 100644
--- a/tnslc/compile/var.tnsl
+++ b/tnslc/compile/var.tnsl
@@ -837,6 +837,11 @@ struct Var {
/; as_global [Var]
Var out = self.copy()
out.name = self._global_base()
+
+ int loc = 0
+ loc = loc - 2
+ out.loc = loc
+
return out
;/