* 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
This commit is contained in:
matz 2004-05-20 04:34:14 +00:00
parent 5345d52ff6
commit a6a8847190
8 changed files with 44 additions and 28 deletions

View file

@ -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;
}