diff --git a/uppsrc/Core/Defs.h b/uppsrc/Core/Defs.h index 4b03df0a0..a31cdd18c 100644 --- a/uppsrc/Core/Defs.h +++ b/uppsrc/Core/Defs.h @@ -278,7 +278,7 @@ template 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"