aboutsummaryrefslogtreecommitdiffstats
path: root/interpret.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-11-22 20:30:09 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-11-22 20:30:09 +0200
commit52715ba9f8510f30368462fee1b1d24bf282b0aa (patch)
tree2b7569bb73d64433f84ccf2672c3973809804b51 /interpret.h
parentf7ae9cfb843379b95d8cb44dbb8de7bbf11862de (diff)
parent033faa34a743231a88a6c555503397045726666f (diff)
downloadegawk-52715ba9f8510f30368462fee1b1d24bf282b0aa.tar.gz
egawk-52715ba9f8510f30368462fee1b1d24bf282b0aa.tar.bz2
egawk-52715ba9f8510f30368462fee1b1d24bf282b0aa.zip
Merge branch 'master' into feature/cmake
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;