Skip to content

Commit

Permalink
Merge pull request #414 from pallas/lexer-lol
Browse files Browse the repository at this point in the history
click/lexer: fix Compound::expand_into sanity check
  • Loading branch information
kohler authored Oct 3, 2018
2 parents b0112ca + a2fad37 commit e50c505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lexer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ Lexer::Compound::expand_into(Lexer *lexer, int which, VariableEnvironment &ve)

// now copy hookups
for (const Connection *cp = _conn.begin(); cp != _conn.end(); ++cp)
if (eidx_map[(*cp)[0].idx] >= 0 && eidx_map[(*cp)[0].idx] >= 0)
if (eidx_map[(*cp)[0].idx] >= 0 && eidx_map[(*cp)[1].idx] >= 0)
lexer->_c->connect(eidx_map[(*cp)[1].idx], (*cp)[1].port,
eidx_map[(*cp)[0].idx], (*cp)[0].port);

Expand Down

0 comments on commit e50c505

Please sign in to comment.