diff --git a/external/patch-omptl b/external/patch-omptl index f9b2e6d..8d5887b 100644 --- a/external/patch-omptl +++ b/external/patch-omptl @@ -92,3 +92,15 @@ diff -ur omptl.orig/omptl_numeric_par.h omptl/omptl_numeric_par.h namespace omptl { +diff -ur omptl.orig/omptl_algorithm_par.h omptl/omptl_algorithm_par.h +--- omptl.orig/omptl_algorithm_par.h 2021-05-09 14:26:47.227632829 +0300 ++++ omptl/omptl_algorithm_par.h 2021-05-09 14:27:02.815744567 +0300 +@@ -1700,7 +1700,7 @@ + + std::vector pivot_used(pivots.size(), false); // can't be bool due to parallel write + +- const unsigned max_depth = std::floor(std::tr1::log2(P)); ++ const unsigned max_depth = unsigned(std::floor(std::tr1::log2(P))); + assert(1u << max_depth <= P); + for (unsigned i = 0; i < max_depth; ++i) + {