Skip to content

Commit

Permalink
Merge pull request #419 from yangfl/upstream
Browse files Browse the repository at this point in the history
iovm: fix build error in IoNumber.h, fix #418
  • Loading branch information
ales-tsurko authored Aug 7, 2018
2 parents cf048d3 + d4e6650 commit 9bfac31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/iovm/source/IoNumber.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ extern "C" {
* So 0/0, -0/0, 0/-0, -0/-0 all give -NaN.
*/
#if defined(USE_BUILTIN_NAN) || !defined(NAN)
static union { unsigned long long __c; double __d; } __nan_union
__attribute_used__ = { 0x7ff8000000000000 };
static union { unsigned long long __c; double __d; } __nan_union = { 0x7ff8000000000000 };
#undef NAN
#define NAN (__nan_union.__d)
#endif
Expand Down

0 comments on commit 9bfac31

Please sign in to comment.