summaryrefslogtreecommitdiff
path: root/tnslc/compile/scope.tnsl
diff options
context:
space:
mode:
Diffstat (limited to 'tnslc/compile/scope.tnsl')
-rw-r--r--tnslc/compile/scope.tnsl9
1 files changed, 7 insertions, 2 deletions
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()
;/