ruby-changes:30354
From: akr <ko1@a...>
Date: Wed, 7 Aug 2013 19:31:51 +0900 (JST)
Subject: [ruby-changes:30354] akr:r42423 (trunk): * bignum.c (dbl2big): A condition simplified.
akr 2013-08-07 19:31:35 +0900 (Wed, 07 Aug 2013) New Revision: 42423 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42423 Log: * bignum.c (dbl2big): A condition simplified. Modified files: trunk/ChangeLog trunk/bignum.c _______________________________________________ ruby-cvs mailing list ruby-cvs@r... http://lists.ruby-lang.org/cgi-bin/mailman/listinfo/ruby-cvs Index: ChangeLog =================================================================== --- ChangeLog (revision 42422) +++ ChangeLog (revision 42423) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Aug 7 19:29:26 2013 Tanaka Akira <akr@f...> + + * bignum.c (dbl2big): A condition simplified. + Wed Aug 7 16:34:30 2013 NAKAMURA Usaku <usa@r...> * test/webrick/test_cgi.rb (TestWEBrickCGI#{start_cgi_server,test_cgi}): Index: bignum.c =================================================================== --- bignum.c (revision 42422) +++ bignum.c (revision 42423) @@ -4749,7 +4749,7 @@ dbl2big(double d) https://github.com/ruby/ruby/blob/trunk/bignum.c#L4749 rb_raise(rb_eFloatDomainError, "NaN"); } - while (!POSFIXABLE(u) || 0 != (long)u) { + while (1.0 <= u) { u /= (double)(BIGRAD); i++; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/