summaryrefslogtreecommitdiff
path: root/pez.c
diff options
context:
space:
mode:
Diffstat (limited to 'pez.c')
-rw-r--r--pez.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pez.c b/pez.c
index d965095..16f7f2a 100644
--- a/pez.c
+++ b/pez.c
@@ -2192,7 +2192,7 @@ endscope(Comp *cm)
} else {
if (!l->has_k) {
--cm->fenv.nvars;
- if (l->mutable) {
+ if (l->mutable && l->scope > 0) {
TRY(compop(cm, Oclose) && compbyte(cm, l->index));
}
}