mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
0558ba4e7b
commit
0c16051114
1 changed files with 1 additions and 1 deletions
2
math.c
2
math.c
|
@ -778,7 +778,7 @@ math_erfc(VALUE unused_obj, VALUE x)
|
||||||
return DBL2NUM(erfc(Get_Double(x)));
|
return DBL2NUM(erfc(Get_Double(x)));
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined __MINGW32__
|
#if defined _WIN32
|
||||||
static inline double
|
static inline double
|
||||||
ruby_tgamma(const double d)
|
ruby_tgamma(const double d)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue