From: Michael Friedrich Date: Wed, 30 Jan 2019 13:47:59 +0000 (+0100) Subject: Fix Convert::ToLong(double val) X-Git-Tag: v2.11.0-rc1~245^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fpull%2F6924%2Fhead;p=icinga2 Fix Convert::ToLong(double val) --- 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;