From 0c160511142233f076a6353784de99f3d73e183d Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 12 May 2017 10:31:52 +0000 Subject: Math.gamma(Float::INFINITY) should return +INF * math.c (tgamma): it seems that the implementaion of mswin has similar problem with mingw. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'math.c') diff --git a/math.c b/math.c index 7be5115b7e..245cdcfb01 100644 --- a/math.c +++ b/math.c @@ -778,7 +778,7 @@ math_erfc(VALUE unused_obj, VALUE x) return DBL2NUM(erfc(Get_Double(x))); } -#if defined __MINGW32__ +#if defined _WIN32 static inline double ruby_tgamma(const double d) { -- cgit v1.2.3