diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-06-04 09:56:25 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-06-04 09:56:25 +0000 |
| commit | c665bfd12f26e12675972a53e8cf9dbd2b11c658 (patch) | |
| tree | efc33dbe637bec20505d88c484551fe7a8445496 /bignum.c | |
| parent | 13a697e591950c7e5499f77b4de20688d60f7729 (diff) | |
| download | ruby-c665bfd12f26e12675972a53e8cf9dbd2b11c658.tar.gz ruby-c665bfd12f26e12675972a53e8cf9dbd2b11c658.tar.xz ruby-c665bfd12f26e12675972a53e8cf9dbd2b11c658.zip | |
* io.c (rb_io_gets_m): set lastline ($_) even when read line is
nil. [ruby-dev:23663]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
| -rw-r--r-- | bignum.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -966,10 +966,11 @@ rb_big_eq(x, y) break; case T_FLOAT: { - double a, b; + volatile double a, b; a = RFLOAT(y)->value; b = rb_big2dbl(x); + if (isnan(a) || isnan(b)) return Qfalse; return (a == b)?Qtrue:Qfalse; } default: |
