mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* math.c (math_lgamma): initialize sign because
lgamma(NaN) doesn't set the sign in OpenSolaris. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b09eabd430
commit
fcd2fb4e87
2 changed files with 6 additions and 1 deletions
2
math.c
2
math.c
|
@ -710,7 +710,7 @@ static VALUE
|
|||
math_lgamma(VALUE obj, VALUE x)
|
||||
{
|
||||
double d0, d;
|
||||
int sign;
|
||||
int sign=1;
|
||||
VALUE v;
|
||||
Need_Float(x);
|
||||
errno = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue