summaryrefslogtreecommitdiff
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
commit4c36359dea36a28751659e34a7a11a311f349e76 (patch)
tree8fce4fed2cf5e215af7ee8ca39ca575246186d00 /numeric.c
parent4e8eeeb244c966c57c47503428590fb5329df76d (diff)
* 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: svn+ssh://ci.ruby-lang.org/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 2d33b49..92a435d 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;
}