From ae71cffb6ca13aa8fa93f93b141606a783d4c99d Mon Sep 17 00:00:00 2001 From: Adrian Haarbach Date: Sat, 22 Sep 2018 13:33:45 +0200 Subject: [PATCH] Fixes #3: OpenMP build error on vc14 This ensures OpenMP 2.5 compatibility instead of 3+ and fixes: Error C3016 'i': index variable in OpenMP 'for' statement must have signed integral type --- src/lib/geogram/basic/process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/geogram/basic/process.cpp b/src/lib/geogram/basic/process.cpp index 87788e78..2022254b 100644 --- a/src/lib/geogram/basic/process.cpp +++ b/src/lib/geogram/basic/process.cpp @@ -232,7 +232,7 @@ namespace { geo_argused(max_threads); #pragma omp parallel for schedule(dynamic) - for(index_t i = 0; i < threads.size(); i++) { + for(signed_index_t i = 0; i < threads.size(); i++) { set_thread_id(threads[i],i); set_current_thread(threads[i]); threads[i]->run();