From a3fc7c905b780244a8984698116f10ad3fe6f6ed Mon Sep 17 00:00:00 2001 From: Kai Gunger Date: Mon, 29 Jun 2026 23:53:13 -0400 Subject: [tnslc] some random fixes, still need to fix parser --- tnslc/compile/scope.tnsl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tnslc/compile/scope.tnsl') diff --git a/tnslc/compile/scope.tnsl b/tnslc/compile/scope.tnsl index dda3d9c..8a6747e 100644 --- a/tnslc/compile/scope.tnsl +++ b/tnslc/compile/scope.tnsl @@ -519,14 +519,19 @@ struct Scope { ;/ int stk_mv = 0 - + int tmp_count = self.tmps.count + ~Var tmp /; loop (int i = 1; i !> tmps) [i++] - tmp = self.tmps.get(self.tmps.count - i) + tmp = self.tmps.get(tmp_count - i) + /; if (tmp`.loc < 0) stk_mv = stk_mv + tmp`.actual_size() ;/ tmp`.end() + ;/ + + /; loop (int i = 0; i < tmps) [i++] self.tmps.pop() ;/ -- cgit v1.2.3