From 4974c689c4bb0d24dfb7a7d83e4fa75bdfc151ea Mon Sep 17 00:00:00 2001
From: Nils Kohl <nils.kohl@fau.de>
Date: Wed, 20 Mar 2019 16:31:37 +0100
Subject: [PATCH] Fixing conversion issues

---
 src/core/math/ParserOMP.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/core/math/ParserOMP.cpp b/src/core/math/ParserOMP.cpp
index b849c5bca..46ab1b687 100644
--- a/src/core/math/ParserOMP.cpp
+++ b/src/core/math/ParserOMP.cpp
@@ -51,7 +51,7 @@ void FunctionParserOMP::parse(const std::string & eq)
    #ifdef _OPENMP
    #pragma omp parallel for schedule(static)
    #endif
-   for (int t = 0; t < omp_get_max_threads(); ++t)
+   for (uint_t t = 0; t < omp_get_max_threads(); ++t)
    {
       parser_[t].parse(eq);
    }
@@ -61,7 +61,7 @@ double FunctionParserOMP::evaluate(const std::map<std::string,double> & symbolTa
 {
    WALBERLA_ASSERT_EQUAL(omp_get_max_threads(), num_parsers_);
 
-   return parser_[omp_get_thread_num()].evaluate(symbolTable);
+   return parser_[uint_c(omp_get_thread_num())].evaluate(symbolTable);
 }
 
 
-- 
GitLab