diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-16 14:30:24 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-16 14:30:24 +0000 |
commit | fae19d62290763330d5b489dbc5d360c45be1ad7 (patch) | |
tree | ee43148d1af6e910bfea42952186ca0ea67db9be /bignum.c | |
parent | 0e2aa330ec5e16b237127db46ebde4eacc84f8c5 (diff) | |
download | ruby-fae19d62290763330d5b489dbc5d360c45be1ad7.tar.gz |
* bignum.c (rb_integer_float_cmp): use FIXNUM_MIN and FIXNUM_MAX,
instead of LONG_MIN and LONG_MAX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1455,9 +1455,9 @@ rb_integer_float_cmp(VALUE x, VALUE y) return INT2FIX(0); #else long xl, yl; - if (yi < LONG_MIN) + if (yi < FIXNUM_MIN) return INT2FIX(1); - if (LONG_MAX < yi) + if (FIXNUM_MAX+1 <= yi) return INT2FIX(-1); xl = FIX2LONG(x); yl = (long)yi; |