summaryrefslogtreecommitdiffstats
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-09 14:22:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-09 14:22:54 +0000
commit7eb8b7e9044dca59c909e50d4c15355f584252e3 (patch)
tree62b0e2005e33eaa36abb385c179b74ba6c9112f4 /ext/bigdecimal
parent01b934813124d38f91cca66501a9a67824da6139 (diff)
downloadruby-7eb8b7e9044dca59c909e50d4c15355f584252e3.tar.gz
ruby-7eb8b7e9044dca59c909e50d4c15355f584252e3.tar.xz
ruby-7eb8b7e9044dca59c909e50d4c15355f584252e3.zip
* ext/bigdecimal/extconf.rb: simplified the condition.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r--ext/bigdecimal/extconf.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/bigdecimal/extconf.rb b/ext/bigdecimal/extconf.rb
index 864aaad86..0c8b98e4a 100644
--- a/ext/bigdecimal/extconf.rb
+++ b/ext/bigdecimal/extconf.rb
@@ -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