* math.c (math_log, math_log10): use nan() instead of 0.0/0.0 on Cygwin.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2001-03-09 17:49:31 +00:00
parent 4dae731bbd
commit 15d67fba62
3 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
Sat Mar 10 02:34:18 2001 WATANABE Hirofumi <eban@ruby-lang.org>
* math.c (math_log, math_log10): use nan() instead of 0.0/0.0 on Cygwin.
Thu Mar 8 17:45:19 2001 Minero Aoki <aamine@dp.u-netsurf.ne.jp>
* lib/net/protocol.rb: one write(2) per one line.

4
math.c
View File

@ -65,8 +65,8 @@ math_exp(obj, x)
}
#if defined __CYGWIN__
#define log(x) ((x) < 0.0 ? 0.0 / 0.0 : log(x))
#define log10(x) ((x) < 0.0 ? 0.0 / 0.0 : log10(x))
#define log(x) ((x) < 0.0 ? nan() : log(x))
#define log10(x) ((x) < 0.0 ? nan() : log10(x))
#endif
static VALUE

View File

@ -1,4 +1,4 @@
#define RUBY_VERSION "1.7.0"
#define RUBY_RELEASE_DATE "2001-03-07"
#define RUBY_RELEASE_DATE "2001-03-10"
#define RUBY_VERSION_CODE 170
#define RUBY_RELEASE_CODE 20010307
#define RUBY_RELEASE_CODE 20010310