From 75c6305ac8da106d88e172014d1016cff90b2305 Mon Sep 17 00:00:00 2001
From: ArashPartow <partow@gmail.com>
Date: Sun, 27 Aug 2017 20:26:47 +1000
Subject: [PATCH] Fix for MSVC warning.

---
 src/core/math/extern/exprtk.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/core/math/extern/exprtk.h b/src/core/math/extern/exprtk.h
index 187763626..b81957312 100644
--- a/src/core/math/extern/exprtk.h
+++ b/src/core/math/extern/exprtk.h
@@ -161,8 +161,10 @@ namespace exprtk
       #ifndef exprtk_disable_caseinsensitivity
       inline void case_normalise(std::string& s)
       {
-         std::transform
-              (s.begin(), s.end(), s.begin(), static_cast<int(*)(int)>(std::tolower));
+         for (std::size_t i = 0; i < s.size(); ++i)
+         {
+            s[i] = static_cast<std::string::value_type>(std::tolower(s[i]));
+         }
       }
 
       inline bool imatch(const char_t c1, const char_t c2)
-- 
GitLab