mirror of
https://github.com/ruby/ruby.git
synced 2025-08-16 05:59:00 +02:00
* 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:
parent
5345d52ff6
commit
a6a8847190
8 changed files with 44 additions and 28 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue