From ff84827eb6022ed208fb21a8e41ba30dd713ea2f Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 7 Aug 2013 10:31:35 +0000 Subject: [PATCH] * bignum.c (dbl2big): A condition simplified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ bignum.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4dd394b99f..5c0d63ac1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Aug 7 19:29:26 2013 Tanaka Akira + + * bignum.c (dbl2big): A condition simplified. + Wed Aug 7 16:34:30 2013 NAKAMURA Usaku * test/webrick/test_cgi.rb (TestWEBrickCGI#{start_cgi_server,test_cgi}): diff --git a/bignum.c b/bignum.c index cfd8a0a820..d3c0f7747b 100644 --- a/bignum.c +++ b/bignum.c @@ -4749,7 +4749,7 @@ dbl2big(double d) rb_raise(rb_eFloatDomainError, "NaN"); } - while (!POSFIXABLE(u) || 0 != (long)u) { + while (1.0 <= u) { u /= (double)(BIGRAD); i++; }