Fixing signed to unsigned comparison warning

This commit is contained in:
DennisOSRM 2011-10-04 15:32:16 +02:00
parent faba474def
commit 528d0a2899

View File

@ -171,7 +171,7 @@ private:
cout << "Scanning for useless shortcuts" << endl; cout << "Scanning for useless shortcuts" << endl;
BuildOutgoingGraph(); BuildOutgoingGraph();
#pragma omp parallel for #pragma omp parallel for
for ( int i = 0; i < ( unsigned ) _graph.size(); i++ ) { for ( unsigned i = 0; i < ( unsigned ) _graph.size(); i++ ) {
for ( unsigned edge = _firstEdge[_graph[i].source]; edge < _firstEdge[_graph[i].source + 1]; ++edge ) { for ( unsigned edge = _firstEdge[_graph[i].source]; edge < _firstEdge[_graph[i].source + 1]; ++edge ) {
if ( edge == i ) if ( edge == i )
continue; continue;