aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-05 16:23:39 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-05 16:23:39 +0000
commite3991677c1b3c266a32044fefdade00ef7aae1d3 (patch)
treeb03836fbccf09b56e7d47cdb1955894f9caba563
parentb2b1125dcef8a982a87b53ea334d5f762d444fbc (diff)
downloadruby-e3991677c1b3c266a32044fefdade00ef7aae1d3.tar.gz
* math.c (ruby_lgamma_r): mswin's lgamma_r also seems to be wrong.
cf. [Bug #12249] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--math.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0bb692be56..e9563ddb0d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Apr 6 01:22:55 2016 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * math.c (ruby_lgamma_r): mswin's lgamma_r also seems to be wrong.
+ cf. [Bug #12249]
+
Wed Apr 6 00:53:31 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* math.c (ruby_lgamma_r): fix lgamma(-0.0) on mingw and OSX.
diff --git a/math.c b/math.c
index 9e97f3a2d2..23c6210373 100644
--- a/math.c
+++ b/math.c
@@ -750,7 +750,7 @@ ruby_tgamma(const double d)
#define tgamma(d) ruby_tgamma(d)
#endif
-#if defined __MINGW32__ || defined __APPLE__
+#if defined _WIN32 || defined __APPLE__
static inline double
ruby_lgamma_r(const double d, int *sign)
{