summaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-20 04:34:14 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-20 04:34:14 +0000
commit39fb0d4c51c26e8c7e061bd885a8106924e6ddc0 (patch)
tree10dc48fe45c7714540858394da15340b021d9bf4 /numeric.c
parent6141b9c82be7825f54c71ab0247dce948be0711d (diff)
downloadruby-39fb0d4c51c26e8c7e061bd885a8106924e6ddc0.tar.gz
ruby-39fb0d4c51c26e8c7e061bd885a8106924e6ddc0.tar.xz
ruby-39fb0d4c51c26e8c7e061bd885a8106924e6ddc0.zip
* numeric.c (flo_eq): alway check if operands are NaN.
[ruby-list:39685] * lib/cgi/session.rb: use LOCK_SH to read, and a few other improvements. [ruby-core:02328] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/numeric.c b/numeric.c
index e0eab93f5..4c97fbe52 100644
--- a/numeric.c
+++ b/numeric.c
@@ -834,9 +834,7 @@ flo_eq(x, y)
return num_equal(x, y);
}
a = RFLOAT(x)->value;
-#if defined __BORLANDC__
if (isnan(a) || isnan(b)) return Qfalse;
-#endif
return (a == b)?Qtrue:Qfalse;
}