From e0343256222a5ca4898bd361d21fa4ad133019ae Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Fri, 7 Apr 2017 17:00:14 +0100 Subject: [PATCH] Tag histories in commands must be addressed by absolute value. --- re2c/src/dfa/closure.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } } -- 2.40.0