From e65599971a2c489eb2adc6eaaf5736c800ba77ee Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 18 Jan 2014 14:52:50 +0000 Subject: [PATCH] Core: IsInf fix win32 git-svn-id: svn://ultimatepp.org/upp/trunk@6792 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/Core/Defs.h b/uppsrc/Core/Defs.h index c2b6f7984..b64986043 100644 --- a/uppsrc/Core/Defs.h +++ b/uppsrc/Core/Defs.h @@ -335,7 +335,7 @@ inline bool IsNaN(double d) { return std::isnan(d); } inline bool IsInf(double d) { return std::isinf(d); } #else inline bool IsNaN(double d) { return _isnan(d); } -inline bool IsInf(double d) { return _finite(d) && !_isnan(d); } +inline bool IsInf(double d) { return !_finite(d) && !_isnan(d); } #endif #elif __APPLE__ inline bool IsNaN(double d) { return std::isnan(d); }