summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorglenda <glenda@cirno>2022-09-18 19:58:41 +0000
committerglenda <glenda@cirno>2022-09-18 19:58:41 +0000
commite275bf9ff105bbb3e12fcf15e3ab755ed0cd26cf (patch)
tree8db2ea862204c026c2fe5670a15deaaeadc88960 /eval.c
parent269c81f0217999367b4180e6a795142cbb2d02e7 (diff)
Chain the symbol tables, not the dfn frames
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index cd9b95a..9df4f4a 100644
--- a/eval.c
+++ b/eval.c
@@ -362,6 +362,8 @@ monadop(Datum *left, Datum *right)
incdatumref(left);
result->func.left = nil;
result->func.scope = right->operator.scope;
+ if(result->func.scope)
+ result->func.scope->refs++;
return result;
}