From: Ulya Trofimovich Date: Tue, 26 May 2015 11:24:48 +0000 (+0100) Subject: Compare DFA states rather than labels. X-Git-Tag: 0.15~248 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a54bfaf547bc0d32ffe6d0a2ac6247419031f7b;p=re2c Compare DFA states rather than labels. (see commit 923f4c5559b1f8b43e63d1013d91698e7496e28c) --- diff --git a/re2c/src/codegen/emit_dfa.cc b/re2c/src/codegen/emit_dfa.cc index af1f070e..3681e85d 100644 --- a/re2c/src/codegen/emit_dfa.cc +++ b/re2c/src/codegen/emit_dfa.cc @@ -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;