mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-31 22:04:04 -06:00
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:
parent
d3b3489c05
commit
08363ebde2
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue