]> Savannah Git Hosting - gnulib.git/commitdiff
regex: fix comment location
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 6 Feb 2021 01:08:45 +0000 (17:08 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 6 Feb 2021 01:25:01 +0000 (17:25 -0800)
* lib/regexec.c (update_regs): Move comment.

ChangeLog
lib/regexec.c

index d838ad0d018e80890134a772db5d385a24ee53e1..70e357884400b454c3b0cb27211d694c032df016 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 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.
 
index 424bc8d15832583956523f3e207f40bee65bb0d9..6309deac8b78b60766d4518af0242c84629b0019 100644 (file)
@@ -1500,10 +1500,10 @@ update_regs (const re_dfa_t *dfa, regmatch_t *pmatch,
     }
   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;