mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* numeric.c (flo_eq): workaround for bcc32's bug.
(ruby-bugs-ja:PR#594) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
13dbddbdce
commit
b88dfa10b5
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Apr 14 11:29:56 2004 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
|
* numeric.c (flo_eq): workaround for bcc32's bug.
|
||||||
|
(ruby-bugs-ja:PR#594)
|
||||||
|
|
||||||
Wed Apr 14 10:57:40 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
Wed Apr 14 10:57:40 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||||
|
|
||||||
* defines.h: include <net/socket.h> to get fd_set definition in BeOS.
|
* defines.h: include <net/socket.h> to get fd_set definition in BeOS.
|
||||||
|
|
|
@ -843,6 +843,9 @@ flo_eq(x, y)
|
||||||
return num_equal(x, y);
|
return num_equal(x, y);
|
||||||
}
|
}
|
||||||
a = RFLOAT(x)->value;
|
a = RFLOAT(x)->value;
|
||||||
|
#if defined __BORLANDC__
|
||||||
|
if (isnan(a) || isnan(b)) return Qfalse;
|
||||||
|
#endif
|
||||||
return (a == b)?Qtrue:Qfalse;
|
return (a == b)?Qtrue:Qfalse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue