summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-06-25 07:41:27 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-06-25 07:41:27 +0900
commit8e6fc29aac0b4cd665ef22f992a805a59f2a220a (patch)
tree8a2999426c9845d5f077b2911c0f5f62ac87752a /include
parentfaa3c52a8d083712fe7e8cf41685d56392e35869 (diff)
parent8d5f67e6f346353c8134e5aa896f7de6c2a05309 (diff)
downloadmruby-8e6fc29aac0b4cd665ef22f992a805a59f2a220a.tar.gz
mruby-8e6fc29aac0b4cd665ef22f992a805a59f2a220a.zip
Merge pull request #2419 from santazhang/use-const
add a few const qualifier
Diffstat (limited to 'include')
-rw-r--r--include/mruby/value.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby/value.h b/include/mruby/value.h
index 98af9626d..ab3adbd63 100644
--- a/include/mruby/value.h
+++ b/include/mruby/value.h
@@ -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