diff --git a/alib2algo/src/conversions/re2fa/Brzozowski.cpp b/alib2algo/src/conversions/re2fa/Brzozowski.cpp index d420f67ab68f48d40f57e9e6806004d4330c6026..3de12a39973829421abef2f2c155d8558ae8c194 100644 --- a/alib2algo/src/conversions/re2fa/Brzozowski.cpp +++ b/alib2algo/src/conversions/re2fa/Brzozowski.cpp @@ -117,7 +117,7 @@ automaton::NFA Brzozowski::convert(const regexp::RegExp& regexp) for(const auto& r : Q) { - regexp.getData().Accept((void*) &out, *this); + r.getData().Accept((void*) &out, *this); if(out.second) // if(r.containsEmptyString()) automaton.addFinalState(stateMap.find(r)->second); }