]> granicus.if.org Git - re2c/commitdiff
Tag histories in commands must be addressed by absolute value.
authorUlya Trofimovich <skvadrik@gmail.com>
Fri, 7 Apr 2017 16:00:14 +0000 (17:00 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Fri, 7 Apr 2017 16:00:14 +0000 (17:00 +0100)
re2c/src/dfa/closure.cc

index a93a33ee2781683b418cc90bd79970e14f848637..488c0dc6aa202ca46f3ee7b45195ef31e5f513ed 100644 (file)
@@ -264,7 +264,7 @@ tcmd_t *generate_versions(closure_t &clos, const std::vector<Tag> &tags,
                        for (p = cmd; p; p = p->next) {
                                if (p->lhs == abs(m) && p->rhs == u && p->pred == h) break;
                        }
-                       if (!p) cmd = tcpool.make_tcmd(cmd, abs(m), u, h);
+                       if (!p) cmd = tcpool.make_tcmd(cmd, abs(m), u, abs(h));
                }
        }