Skip to content

Commit

Permalink
fixed bad_alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
MasWag committed Sep 17, 2019
1 parent 00929dc commit 45ee7ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monaa/tre.cc
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void TRE::toEventTA(TimedAutomaton &out) const {
regExpr->toEventTA(out);
for (auto &s: out.states) {
for (auto &edges: s->next) {
for (auto &edge: edges.second) {
for (auto edge: edges.second) {
TAState *target = edge.target;
if (target && target->isMatch) {
edges.second.reserve(edges.second.size() + out.initialStates.size());
Expand Down

0 comments on commit 45ee7ff

Please sign in to comment.