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

* 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
This commit is contained in:
mrkn 2010-11-16 00:37:31 +00:00
parent 8b09bf2a72
commit 0ec61a3156
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Tue Nov 16 09:33:00 2010 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/lib/bigdecimal/util.rb (to_digits): avoid unused
variables warning, reported by Aaron Patterson.
Tue Nov 16 06:39:31 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> Tue Nov 16 06:39:31 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* pack.c (PACK_ITEM_ADJUST): return nil not result array and yield * pack.c (PACK_ITEM_ADJUST): return nil not result array and yield

View file

@ -35,7 +35,7 @@ class BigDecimal < Numeric
self.to_s self.to_s
else else
i = self.to_i.to_s i = self.to_i.to_s
s,f,y,z = self.frac.split _,f,_,z = self.frac.split
i + "." + ("0"*(-z)) + f i + "." + ("0"*(-z)) + f
end end
end end