Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 872af73

Browse files
committed
Fix MPL_notisfinite64
svn path=/trunk/matplotlib/; revision=6016
1 parent 18ff5e6 commit 872af73

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/MPL_isnan.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ typedef long long MPL_Int64;
7373
#if !defined(MPL_notisfinite64)
7474
#if !defined(_MSC_VER)
7575
#define MPL_notisfinite64(u) \
76-
( (( MPL_U64(u) & 0x7ff0000000000000LL) != 0x7ff0000000000000LL)) ? 0:1
76+
( (( MPL_U64(u) & 0x7ff0000000000000LL) == 0x7ff0000000000000LL)) ? 1:0
7777
#else
7878
#define MPL_notisfinite64(u) \
79-
( (( MPL_U64(u) & 0x7ff0000000000000i64) != 0x7ff0000000000000i64)) ? 0:1
79+
( (( MPL_U64(u) & 0x7ff0000000000000i64) == 0x7ff0000000000000i64)) ? 1:0
8080
#endif
8181
#endif /* MPL_notisfinite64 */
8282

0 commit comments

Comments
 (0)