From a6a8847190d9075b742e6247a769c2b8c6ab5f0c Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 20 May 2004 04:34:14 +0000 Subject: * 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/trunk@6372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index e0eab93f56..4c97fbe526 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; } -- cgit v1.2.3