diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-06 18:02:59 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-06 18:02:59 +0000 |
commit | fcd2fb4e871f3787f34b05cffeb7e5df7b04f29f (patch) | |
tree | 343a573d405f6d7dbd78090f003517be31837dd6 /math.c | |
parent | b09eabd430d92cdae011bb7ad08a3300049a4392 (diff) |
* 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
Diffstat (limited to 'math.c')
-rw-r--r-- | math.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |