aboutsummaryrefslogtreecommitdiffstats
path: root/interpret.h
diff options
context:
space:
mode:
Diffstat (limited to 'interpret.h')
-rw-r--r--interpret.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/interpret.h b/interpret.h
index 816a6efa..da8e0604 100644
--- a/interpret.h
+++ b/interpret.h
@@ -994,6 +994,9 @@ arrayfor:
r = POP_STRING();
unref(m->re_exp);
m->re_exp = r;
+ } else if (m->type == Node_val) {
+ assert((m->flags & REGEX) != 0);
+ UPREF(m);
}
PUSH(m);
break;