From 71262eb9b6613af1aa704ae9ca516a4b56ef5d09 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Wed, 27 May 2015 16:33:22 +0100 Subject: [PATCH] Clarified which label is used. Label of the first state must be used rather than some obscure label relative to start label (which is itself quite obscure). --- 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 b26dde4f..b9e7e6c7 100644 --- a/re2c/src/codegen/emit_dfa.cc +++ b/re2c/src/codegen/emit_dfa.cc @@ -191,7 +191,7 @@ void DFA::emit(Output & output, uint32_t& ind, const RegExpMap* specMap, const s if (DFlag) { - o << condName << " -> " << (start_label+1) << "\n"; + o << condName << " -> " << head->label << "\n"; } else { -- 2.40.0