add a few const qualifier

This commit is contained in:
Santa Zhang
2014-06-24 15:16:13 -04:00
parent faa3c52a8d
commit 8d5f67e6f3
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ typedef short mrb_sym;
# define PRIo64 "I64o"
# define PRIx64 "I64x"
# define PRIX64 "I64X"
static unsigned int IEEE754_INFINITY_BITS_SINGLE = 0x7F800000;
static const unsigned int IEEE754_INFINITY_BITS_SINGLE = 0x7F800000;
# define INFINITY (*(float *)&IEEE754_INFINITY_BITS_SINGLE)
# define NAN ((float)(INFINITY - INFINITY))
# else