]> granicus.if.org Git - re2c/commitdiff
Compare DFA states rather than labels.
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 26 May 2015 11:24:48 +0000 (12:24 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 26 May 2015 11:24:48 +0000 (12:24 +0100)
(see commit 923f4c5559b1f8b43e63d1013d91698e7496e28c)

re2c/src/codegen/emit_dfa.cc

index af1f070ec2d01f62fb94782a8f5336d4c6565650..3681e85df2dc011cf7058153a12f57fdec4e3429 100644 (file)
@@ -36,7 +36,7 @@ void genGoTo(OutputFile & o, uint32_t ind, const State *from, const State *to, b
                return;
        }
 
-       if (readCh && from->label + 1 != to->label)
+       if (readCh && from->next != to)
        {
                o << input_api.stmt_peek (ind);
                readCh = false;