* lib/regexec.c (update_regs): Move comment.
2021-02-05 Paul Eggert <eggert@cs.ucla.edu>
+ regex: fix comment location
+ * lib/regexec.c (update_regs): Move comment.
+
regex-tests: add bug 11053 test
* tests/test-regex.c (main): New test case for glibc bug 11053.
}
else if (type == OP_CLOSE_SUBEXP)
{
+ /* We are at the last node of this sub expression. */
Idx reg_num = dfa->nodes[cur_node].opr.idx + 1;
if (reg_num < nmatch)
{
- /* We are at the last node of this sub expression. */
if (pmatch[reg_num].rm_so < cur_idx)
{
pmatch[reg_num].rm_eo = cur_idx;