diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-08-03 21:23:57 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-08-03 21:23:57 +0300 |
commit | e1c2c0cff0469063313d8bbbd108cd10db9ee677 (patch) | |
tree | 1b0757c65586e0e8e9404f3b6680d6967cf56e01 /re.c | |
parent | d77474639979a4f707107d28fa1e8e84510880e4 (diff) | |
parent | 9907a598dca8f129422c42f8c4fa3b4e2c988221 (diff) | |
download | egawk-e1c2c0cff0469063313d8bbbd108cd10db9ee677.tar.gz egawk-e1c2c0cff0469063313d8bbbd108cd10db9ee677.tar.bz2 egawk-e1c2c0cff0469063313d8bbbd108cd10db9ee677.zip |
Merge branch 'master' into feature/cmake
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -351,14 +351,10 @@ re_update(NODE *t) /* regex was compiled with settings matching IGNORECASE */ if ((t->re_flags & CONSTANT) != 0) { /* it's a constant, so just return it as is */ - assert(t->type == Node_regex || t->type == Node_typedregex); + assert(t->type == Node_regex); return t->re_reg; } t1 = t->re_exp; - if (t1->type == Node_typedregex) { - assert((t1->re_flags & CONSTANT) != 0); - return t1->re_reg; - } if (t->re_text != NULL) { /* if contents haven't changed, just return it */ if (cmp_nodes(t->re_text, t1) == 0) |