From: Ulya Trofimovich Date: Fri, 7 Apr 2017 16:00:14 +0000 (+0100) Subject: Tag histories in commands must be addressed by absolute value. X-Git-Tag: 1.0~39^2~75 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0343256222a5ca4898bd361d21fa4ad133019ae;p=re2c Tag histories in commands must be addressed by absolute value. --- diff --git a/re2c/src/dfa/closure.cc b/re2c/src/dfa/closure.cc index a93a33ee..488c0dc6 100644 --- a/re2c/src/dfa/closure.cc +++ b/re2c/src/dfa/closure.cc @@ -264,7 +264,7 @@ tcmd_t *generate_versions(closure_t &clos, const std::vector &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)); } }