From: Ulya Trofimovich Date: Sun, 24 May 2015 20:33:18 +0000 (+0100) Subject: Clarify that initial state stores 'start_label', not some random label. X-Git-Tag: 0.15~250 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81c87ee88c8761276d2c86d53beeb01e259d77c3;p=re2c Clarify that initial state stores 'start_label', not some random label. --- 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) {