From d09777244f5d767b78f4ce655e02cb36acf54df0 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Tue, 27 Jun 2017 15:40:42 +0100 Subject: [PATCH] Fixed typo that caused miscalculation of new tag version. --- 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 80caa1aa..608d6780 100644 --- a/re2c/src/dfa/closure.cc +++ b/re2c/src/dfa/closure.cc @@ -353,7 +353,7 @@ tcmd_t *generate_versions(closure_t &clos, const std::vector &tags, const tagver_t v0 = vs[t], h0 = tagtree.last(h, t), - v = history(tags[t]) ? v : TAGVER_ZERO; + v = history(tags[t]) ? v0 : TAGVER_ZERO; if (h0 == TAGVER_ZERO) { vers[t] = v0; } else { -- 2.40.0