From 81c87ee88c8761276d2c86d53beeb01e259d77c3 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Sun, 24 May 2015 21:33:18 +0100 Subject: [PATCH] Clarify that initial state stores 'start_label', not some random label. --- re2c/src/codegen/emit_dfa.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/re2c/src/codegen/emit_dfa.cc b/re2c/src/codegen/emit_dfa.cc index 457c1f64..af1f070e 100644 --- a/re2c/src/codegen/emit_dfa.cc +++ b/re2c/src/codegen/emit_dfa.cc @@ -83,9 +83,9 @@ void DFA::emit(Output & output, uint32_t& ind, const RegExpMap* specMap, const s next_label++; } - uint32_t start_label = next_label; + uint32_t start_label = next_label++; - head->action.set_initial (next_label++, bSaveOnHead); + head->action.set_initial (start_label, bSaveOnHead); if (bUseStartLabel) { -- 2.50.0