From 83884a37472df9258f777c6e045942373afe1e0f Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Sun, 9 May 2021 14:28:39 +0300 Subject: [PATCH] Add warning fix --- external/patch-omptl | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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) + {