Core: double NAN and INF are now IsNull

git-svn-id: svn://ultimatepp.org/upp/trunk@15592 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-12-14 09:30:33 +00:00
parent d3b3489c05
commit 08363ebde2

View file

@ -278,7 +278,7 @@ template <class T> bool IsNull(const T& x) { return x.IsNullInstance(); }
template<> inline bool IsNull(const int& i) { return i == INT_NULL; }
template<> inline bool IsNull(const int64& i) { return i == INT64_NULL; }
template<> inline bool IsNull(const double& r) { return r < DOUBLE_NULL_LIM; }
template<> inline bool IsNull(const double& r) { return !(abs(r) < -DOUBLE_NULL); }
template<> inline bool IsNull(const bool& r ) { return false; }
#include "Heap.h"