1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/bigdecimal/extconf.rb: simplified the condition.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-02-09 14:22:54 +00:00
parent 9fcfb0b4ff
commit fba0a9e7e9
2 changed files with 5 additions and 3 deletions

View file

@ -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 17:51:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): use strtod() for more

View file

@ -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