summaryrefslogtreecommitdiff
path: root/tnslc/compile/scope.tnsl
diff options
context:
space:
mode:
authorKai Gunger <kgunger12@gmail.com>2026-04-10 02:57:26 -0400
committerKai Gunger <kgunger12@gmail.com>2026-04-10 02:57:26 -0400
commitaf4ef5d7af33530ee64980e9db1a9d52571f0e70 (patch)
tree97fbaee667eae60efc77956d4a03c0568210d743 /tnslc/compile/scope.tnsl
parente2d0072536bd01ea362e903238f487ba39efa411 (diff)
[tnslc] var ops
Diffstat (limited to 'tnslc/compile/scope.tnsl')
-rw-r--r--tnslc/compile/scope.tnsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tnslc/compile/scope.tnsl b/tnslc/compile/scope.tnsl
index e3348dd..58bfb33 100644
--- a/tnslc/compile/scope.tnsl
+++ b/tnslc/compile/scope.tnsl
@@ -316,7 +316,8 @@ struct Scope {
;/
/; if (v`.is_ref() == true)
- v`.set_ref(self.cb, src)
+ int rc = v`.max_ref()
+ v`.set_ref(self.cb, src, rc)
;; else
v`.set(self.cb, src)
;/