ruby-changes:14749
From: akr <ko1@a...>
Date: Sun, 7 Feb 2010 03:03:16 +0900 (JST)
Subject: [ruby-changes:14749] Ruby:r26608 (trunk): * math.c (math_lgamma): initialize sign because
akr 2010-02-07 03:02:59 +0900 (Sun, 07 Feb 2010) New Revision: 26608 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26608 Log: * math.c (math_lgamma): initialize sign because lgamma(NaN) doesn't set the sign in OpenSolaris. Modified files: trunk/ChangeLog trunk/math.c Index: math.c =================================================================== --- math.c (revision 26607) +++ math.c (revision 26608) @@ -710,7 +710,7 @@ math_lgamma(VALUE obj, VALUE x) { double d0, d; - int sign; + int sign=1; VALUE v; Need_Float(x); errno = 0; Index: ChangeLog =================================================================== --- ChangeLog (revision 26607) +++ ChangeLog (revision 26608) @@ -1,3 +1,8 @@ +Sun Feb 7 03:01:46 2010 Tanaka Akira <akr@f...> + + * math.c (math_lgamma): initialize sign because + lgamma(NaN) doesn't set the sign in OpenSolaris. + Sun Feb 7 00:23:21 2010 Shugo Maeda <shugo@r...> * class.c (rb_class_init_copy): raise a TypeError if the argument is -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/