summaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-20 04:28:36 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-20 04:28:36 +0000
commit8258a00d5cce9506d5e22bf0c1f666729e3735db (patch)
tree8fce4fed2cf5e215af7ee8ca39ca575246186d00 /numeric.c
parentcd9b9dbb806cf08f66b35b0bba514446c0d6ea7a (diff)
downloadruby-8258a00d5cce9506d5e22bf0c1f666729e3735db.tar.gz
ruby-8258a00d5cce9506d5e22bf0c1f666729e3735db.tar.xz
ruby-8258a00d5cce9506d5e22bf0c1f666729e3735db.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/branches/ruby_1_8@6371 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 2d33b49ba..92a435df1 100644
--- a/numeric.c
+++ b/numeric.c
@@ -833,9 +833,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;
}