]> granicus.if.org Git - re2c/commitdiff
Fixed typo that caused miscalculation of new tag version.
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 27 Jun 2017 14:40:42 +0000 (15:40 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 27 Jun 2017 14:40:42 +0000 (15:40 +0100)
re2c/src/dfa/closure.cc

index 80caa1aa18b565f0818bb66271877473ea094807..608d67806f7b5d9d78bcbf7a327286b30a66569a 100644 (file)
@@ -353,7 +353,7 @@ tcmd_t *generate_versions(closure_t &clos, const std::vector<Tag> &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 {