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.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)