Skip to content

Commit

Permalink
Fixes alicevision#3: OpenMP build error on vc14
Browse files Browse the repository at this point in the history
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
  • Loading branch information
adrelino authored Sep 22, 2018
1 parent 0ac4a58 commit ae71cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/geogram/basic/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ae71cff

Please sign in to comment.