summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-03-09 17:49:31 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-03-09 17:49:31 +0000
commit15d67fba624df2ee5befa67a0553d29b1196bb1b (patch)
treece32c02bf761f2ef52849cc864d339b81703e60e
parent4dae731bbd067cd1cae8ecf42ede0a4ac7c16bc8 (diff)
* 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
-rw-r--r--ChangeLog4
-rw-r--r--math.c4
-rw-r--r--version.h4
3 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index a15989ab78..19eda683cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/math.c b/math.c
index 9b28ddbf60..b2d61f609c 100644
--- a/math.c
+++ b/math.c
@@ -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
diff --git a/version.h b/version.h
index 588e9dd99d..ba55f61871 100644
--- a/version.h
+++ b/version.h
@@ -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