From ee63030ea9a6783b35a6eec564437e5e4cf50bcb Mon Sep 17 00:00:00 2001 From: nagai Date: Fri, 13 Nov 2009 19:11:32 +0000 Subject: * ext/tk/lib/tk/variable.rb (TkVariable::coerce): fix bug on a numeric value. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/tk/lib/tk/variable.rb | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 75023719e..417d7d9ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Nov 14 04:07:06 2009 Hidetoshi NAGAI + + * ext/tk/lib/tk/variable.rb (TkVariable::coerce): fix bug on a + numeric value. + Sat Nov 14 03:35:29 2009 Hidetoshi NAGAI * ext/tk/lib/tk/variable.rb: TkVariable#*(other) and /(other) have a diff --git a/ext/tk/lib/tk/variable.rb b/ext/tk/lib/tk/variable.rb index 7290658bf..0487b034b 100644 --- a/ext/tk/lib/tk/variable.rb +++ b/ext/tk/lib/tk/variable.rb @@ -1164,10 +1164,8 @@ end [other, self.to_s] when Symbol [other, self.to_sym] - when Integer - [other, self.to_i] - when Float - [other, self.to_f] + when Numeric + [other, self.numeric] when Array [other, self.to_a] else -- cgit