* ext/bigdecimal/extconf.rb: simplified the condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7ced5439b4
commit
4d5f46dc08
@ -1,3 +1,7 @@
|
|||||||
|
Sat Feb 9 23:22:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/bigdecimal/extconf.rb: simplified the condition.
|
||||||
|
|
||||||
Sat Feb 9 21:20:28 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
Sat Feb 9 21:20:28 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
* test/ruby/test_math.rb: add tests for Math#gamma, Math#lgamma and
|
* test/ruby/test_math.rb: add tests for Math#gamma, Math#lgamma and
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
|
|
||||||
base_fig = 0
|
base_fig = 0
|
||||||
src = ("(BASE > 0) && "
|
src = "(BASE * (BASE+1)) / BASE == (BASE+1)"
|
||||||
"(BASE * (BASE+1)) > BASE && "
|
|
||||||
"(BASE * (BASE+1)) / BASE == (BASE+1)")
|
|
||||||
while try_static_assert(src, nil, "-DBASE=10#{'0'*base_fig}UL")
|
while try_static_assert(src, nil, "-DBASE=10#{'0'*base_fig}UL")
|
||||||
base_fig += 1
|
base_fig += 1
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user