From bcb6de6bceff736b32d516ec641219ef3bffc6bc Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 9 Mar 2020 14:56:25 +0000 Subject: [PATCH] Core: Added missing template<> to Polycompare(..double) (thanks kohait) git-svn-id: svn://ultimatepp.org/upp/trunk@14144 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Value.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/uppsrc/Core/Value.hpp b/uppsrc/Core/Value.hpp index 03330c7d6..439514409 100644 --- a/uppsrc/Core/Value.hpp +++ b/uppsrc/Core/Value.hpp @@ -74,6 +74,7 @@ inline int PolyCompare(const int64& x, const Value& v) { : 0; } +template<> inline int PolyCompare(const double& x, const Value& v) { return IsNumber(v) ? SgnCompare((double)x, (double)v) : 0; }