summaryrefslogtreecommitdiffhomepage
path: root/src/numeric.c
diff options
context:
space:
mode:
authorDavid Turnbull <[email protected]>2014-07-05 09:12:56 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2014-07-09 06:32:11 +0900
commit249f05e7d70761823ef07a990276f9200e8b3302 (patch)
tree278a9e93d5469459fc7deca6e56293aa8edb9697 /src/numeric.c
parent5c50bcd20a68394da3b90cf2ac3fba2b1ed43cff (diff)
downloadmruby-249f05e7d70761823ef07a990276f9200e8b3302.tar.gz
mruby-249f05e7d70761823ef07a990276f9200e8b3302.zip
Clean up value.h and mrb_value boxing
Diffstat (limited to 'src/numeric.c')
-rw-r--r--src/numeric.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/numeric.c b/src/numeric.c
index b8c3ae4a4..3f7600151 100644
--- a/src/numeric.c
+++ b/src/numeric.c
@@ -687,12 +687,8 @@ int_to_i(mrb_state *mrb, mrb_value num)
return num;
}
-#ifdef MRB_FIXNUM_SHIFT
-#define SQRT_INT_MAX ((mrb_int)1<<((MRB_INT_BIT-1-MRB_FIXNUM_SHIFT)/2))
-#else
-#define SQRT_INT_MAX ((mrb_int)1<<((MRB_INT_BIT-1)/2))
-#endif
/*tests if N*N would overflow*/
+#define SQRT_INT_MAX ((mrb_int)1<<((MRB_INT_BIT-1-MRB_FIXNUM_SHIFT)/2))
#define FIT_SQRT_INT(n) (((n)<SQRT_INT_MAX)&&((n)>=-SQRT_INT_MAX))
mrb_value