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;