[前][次][番号順一覧][スレッド一覧]

ruby-changes:46570

From: usa <ko1@a...>
Date: Fri, 12 May 2017 19:31:58 +0900 (JST)
Subject: [ruby-changes:46570] usa:r58685 (trunk): Math.gamma(Float::INFINITY) should return +INF

usa	2017-05-12 19:31:52 +0900 (Fri, 12 May 2017)

  New Revision: 58685

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58685

  Log:
    Math.gamma(Float::INFINITY) should return +INF
    
    * math.c (tgamma): it seems that the implementaion of mswin has similar problem
      with mingw.

  Modified files:
    trunk/math.c
Index: math.c
===================================================================
--- math.c	(revision 58684)
+++ math.c	(revision 58685)
@@ -778,7 +778,7 @@ math_erfc(VALUE unused_obj, VALUE x) https://github.com/ruby/ruby/blob/trunk/math.c#L778
     return DBL2NUM(erfc(Get_Double(x)));
 }
 
-#if defined __MINGW32__
+#if defined _WIN32
 static inline double
 ruby_tgamma(const double d)
 {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]