OpenMP 2.0 for variable must be an int

This commit is contained in:
Sasa Ivetic 2011-10-05 11:00:32 -05:00
parent 3ec4487297
commit 789cb99292

View File

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