summaryrefslogtreecommitdiff
path: root/tnslc/compile/function.tnsl
diff options
context:
space:
mode:
authorCircleShift <kgunger12@gmail.com>2025-12-22 02:33:29 -0500
committerCircleShift <kgunger12@gmail.com>2025-12-22 02:33:29 -0500
commit132279939f8266e7bbd0e07f66926e36b50c35b2 (patch)
treef79ce78a3b63c877629c1600f83bdda0ea290394 /tnslc/compile/function.tnsl
parentf9df5cb9c377b54ae56123416d7921cf870b0bb7 (diff)
better locations
Diffstat (limited to 'tnslc/compile/function.tnsl')
-rw-r--r--tnslc/compile/function.tnsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tnslc/compile/function.tnsl b/tnslc/compile/function.tnsl
index 0ad8e6f..682236b 100644
--- a/tnslc/compile/function.tnsl
+++ b/tnslc/compile/function.tnsl
@@ -37,8 +37,8 @@ struct Function {
p.loc = reg
reg++
;; else
- p.loc = 0
- p.loc = p.loc - stack_down
+ p.loc = 0 - 1
+ p.offset = 0 - stack_down
stack_down = stack_down - p.actual_size()
;/
self.inputs.push(~p)