Merge pull request #2141 from kyab/fix_msvc_warning_numeric.c

Fix MSVC warnings for numeric.c
This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-04-28 05:54:43 +09:00
+2 -1
View File
@@ -75,7 +75,8 @@ typedef short mrb_sym;
# define PRIo64 "I64o"
# define PRIx64 "I64x"
# define PRIX64 "I64X"
# define INFINITY ((float)(DBL_MAX * DBL_MAX))
static unsigned int IEEE754_INFINITY_BITS_SINGLE = 0x7F800000;
# define INFINITY (*(float *)&IEEE754_INFINITY_BITS_SINGLE)
# define NAN ((float)(INFINITY - INFINITY))
# else
# include <inttypes.h>