summaryrefslogtreecommitdiff
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-16 00:37:31 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-16 00:37:31 +0000
commit0ec61a315626fe978317e7b6d1fb8c6db9e1212e (patch)
tree5fc300efa51faa3890323c8e08187b01bd125fcd /ext/bigdecimal
parent8b09bf2a72e4e59bb5107c15be367cf8808e6667 (diff)
* ext/bigdecimal/lib/bigdecimal/util.rb (to_digits): avoid unused
variables warning, reported by Aaron Patterson. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r--ext/bigdecimal/lib/bigdecimal/util.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bigdecimal/lib/bigdecimal/util.rb b/ext/bigdecimal/lib/bigdecimal/util.rb
index 4742664..a023546 100644
--- a/ext/bigdecimal/lib/bigdecimal/util.rb
+++ b/ext/bigdecimal/lib/bigdecimal/util.rb
@@ -35,7 +35,7 @@ class BigDecimal < Numeric
self.to_s
else
i = self.to_i.to_s
- s,f,y,z = self.frac.split
+ _,f,_,z = self.frac.split
i + "." + ("0"*(-z)) + f
end
end