ruby-changes:3929
From: ko1@a...
Date: Sat, 9 Feb 2008 23:23:15 +0900 (JST)
Subject: [ruby-changes:3929] nobu - Ruby:r15419 (ruby_1_8, trunk): * ext/bigdecimal/extconf.rb: simplified the condition.
nobu 2008-02-09 23:22:54 +0900 (Sat, 09 Feb 2008) New Revision: 15419 Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/ext/bigdecimal/extconf.rb trunk/ChangeLog trunk/ext/bigdecimal/extconf.rb Log: * ext/bigdecimal/extconf.rb: simplified the condition. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=15419&r2=15418&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15419&r2=15418&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ext/bigdecimal/extconf.rb?r1=15419&r2=15418&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ext/bigdecimal/extconf.rb?r1=15419&r2=15418&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 15418) +++ ChangeLog (revision 15419) @@ -1,3 +1,7 @@ +Sat Feb 9 23:22:52 2008 Nobuyoshi Nakada <nobu@r...> + + * ext/bigdecimal/extconf.rb: simplified the condition. + Sat Feb 9 21:20:28 2008 Yusuke Endoh <mame@t...> * test/ruby/test_math.rb: add tests for Math#gamma, Math#lgamma and Index: ext/bigdecimal/extconf.rb =================================================================== --- ext/bigdecimal/extconf.rb (revision 15418) +++ ext/bigdecimal/extconf.rb (revision 15419) @@ -1,9 +1,7 @@ require 'mkmf' base_fig = 0 -src = ("(BASE > 0) && " - "(BASE * (BASE+1)) > BASE && " - "(BASE * (BASE+1)) / BASE == (BASE+1)") +src = "(BASE * (BASE+1)) / BASE == (BASE+1)" while try_static_assert(src, nil, "-DBASE=10#{'0'*base_fig}UL") base_fig += 1 end Index: ruby_1_8/ext/bigdecimal/extconf.rb =================================================================== --- ruby_1_8/ext/bigdecimal/extconf.rb (revision 15418) +++ ruby_1_8/ext/bigdecimal/extconf.rb (revision 15419) @@ -1,9 +1,7 @@ require 'mkmf' base_fig = 0 -src = ("(BASE > 0) && " - "(BASE * (BASE+1)) > BASE && " - "(BASE * (BASE+1)) / BASE == (BASE+1)") +src = "(BASE * (BASE+1)) / BASE == (BASE+1)" while try_static_assert(src, nil, "-DBASE=10#{'0'*base_fig}UL") base_fig += 1 end Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 15418) +++ ruby_1_8/ChangeLog (revision 15419) @@ -1,3 +1,7 @@ +Sat Feb 9 23:22:52 2008 Nobuyoshi Nakada <nobu@r...> + + * ext/bigdecimal/extconf.rb: simplified the condition. + Sat Feb 9 17:51:24 2008 Nobuyoshi Nakada <nobu@r...> * ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): use strtod() for more -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/