From b58cb17e4b389c6bd703e2334cb0bb2739213f62 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 30 Jan 2019 14:47:59 +0100 Subject: [PATCH] Fix Convert::ToLong(double val) --- lib/base/convert.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/base/convert.hpp b/lib/base/convert.hpp index 8b9000d05..bb7bd3e5c 100644 --- a/lib/base/convert.hpp +++ b/lib/base/convert.hpp @@ -64,6 +64,11 @@ public: return val; } + static long ToLong(double val) + { + return static_cast(val); + } + static double ToDouble(const Value& val) { return val;