Skip to content

Commit

Permalink
fixing #4 L506 L600
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisashukla committed Feb 27, 2017
1 parent 70619bd commit a26673e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/trsp/src/GraphDefinition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,10 +539,12 @@ int GraphDefinition:: my_dijkstra(edge_t *edges, unsigned int edge_count, int st
if(seq_cnt == 2 && ruleIndex.second[1] == m_lStartEdgeId)
{
vecsource = m_mapNodeId2Edge[start_vertex];
for(kk = 0; kk < vecsource.size(); kk++)
// for(kk = 0; kk < vecsource.size(); kk++)
// {
for(const auto &vecsourceIndex:vecsource)
{
rule.precedencelist.clear();
rule.precedencelist.push_back(m_vecEdgeVector[vecsource[kk]]->m_lEdgeID);
rule.precedencelist.push_back(m_vecEdgeVector[vecsourceIndex]->m_lEdgeID);
m_ruleTable[dest_edge_id].push_back(rule);
}
}
Expand Down

0 comments on commit a26673e

Please sign in to comment.