From 0ec61a315626fe978317e7b6d1fb8c6db9e1212e Mon Sep 17 00:00:00 2001 From: mrkn Date: Tue, 16 Nov 2010 00:37:31 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ ext/bigdecimal/lib/bigdecimal/util.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2f1cf8ddfe..432ef36114 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Nov 16 09:33:00 2010 Kenta Murata + + * 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 * pack.c (PACK_ITEM_ADJUST): return nil not result array and yield diff --git a/ext/bigdecimal/lib/bigdecimal/util.rb b/ext/bigdecimal/lib/bigdecimal/util.rb index 474266476f..a0235460bd 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