From 789cb9929246d39ae8a95f727334a77666270a19 Mon Sep 17 00:00:00 2001 From: Sasa Ivetic Date: Wed, 5 Oct 2011 11:00:32 -0500 Subject: [PATCH] OpenMP 2.0 for variable must be an int --- Contractor/ContractionCleanup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Contractor/ContractionCleanup.h b/Contractor/ContractionCleanup.h index b48cd30e4..1a473fe9e 100644 --- a/Contractor/ContractionCleanup.h +++ b/Contractor/ContractionCleanup.h @@ -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;