From 3a54bfaf547bc0d32ffe6d0a2ac6247419031f7b Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Tue, 26 May 2015 12:24:48 +0100 Subject: [PATCH] Compare DFA states rather than labels. (see commit 923f4c5559b1f8b43e63d1013d91698e7496e28c) --- re2c/src/codegen/emit_dfa.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0