From fcd2fb4e871f3787f34b05cffeb7e5df7b04f29f Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 6 Feb 2010 18:02:59 +0000 Subject: * 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 --- math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'math.c') diff --git a/math.c b/math.c index 1d7d5e4188..027932dee9 100644 --- a/math.c +++ b/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; -- cgit v1.2.3