summaryrefslogtreecommitdiff
path: root/tnslc/compile/scope.tnsl
diff options
context:
space:
mode:
authorKai Gunger <kgunger12@gmail.com>2026-04-13 04:07:44 -0400
committerKai Gunger <kgunger12@gmail.com>2026-04-13 04:07:44 -0400
commit2b43217716341352eac445ed0f7aacef0b8ac43d (patch)
tree8788b67693bee2c24c61ca754180b9d1dbeeb455 /tnslc/compile/scope.tnsl
parent8997ebe0fa11f26698fb0ee081134e51a0d9e6fb (diff)
[tnslc] More var utils
Diffstat (limited to 'tnslc/compile/scope.tnsl')
-rw-r--r--tnslc/compile/scope.tnsl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tnslc/compile/scope.tnsl b/tnslc/compile/scope.tnsl
index e94fc8d..6faf596 100644
--- a/tnslc/compile/scope.tnsl
+++ b/tnslc/compile/scope.tnsl
@@ -338,6 +338,7 @@ struct Scope {
/; if (v`.is_ref() == true)
int rc = v`.max_ref()
+ rc = rc - 1
v`.set_ref(self.cb, src, rc)
;; else
v`.set(self.cb, src)