diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-22 13:04:25 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-22 13:04:25 +0000 |
commit | 210bf4dc6e6c7961cb48fae3463271fe17d00667 (patch) | |
tree | 76c10dd33e9468c0c5bb019484951d76f1ff4ab2 /bignum.c | |
parent | ef43ac0d05e4c6262e43f152d735df34e431537c (diff) |
* bignum.c (rb_big_eq): reduce isnan(). [ruby-dev:26600]
* numeric.c (flo_eq, flo_gt, flo_ge, flo_lt, flo_le): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -979,8 +979,8 @@ rb_big_eq(x, y) volatile double a, b; a = RFLOAT(y)->value; + if (isnan(a)) return Qfalse; b = rb_big2dbl(x); - if (isnan(a) || isnan(b)) return Qfalse; return (a == b)?Qtrue:Qfalse; } default: |