summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-13 19:11:32 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-13 19:11:32 +0000
commitee63030ea9a6783b35a6eec564437e5e4cf50bcb (patch)
treef77c95b828e31ffa85bab32a1333c05e5b0df10a /ext
parent5afd2f3d07145e3474825b643a6f90e4a5e70bcf (diff)
downloadruby-ee63030ea9a6783b35a6eec564437e5e4cf50bcb.tar.gz
ruby-ee63030ea9a6783b35a6eec564437e5e4cf50bcb.tar.xz
ruby-ee63030ea9a6783b35a6eec564437e5e4cf50bcb.zip
* 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
Diffstat (limited to 'ext')
-rw-r--r--ext/tk/lib/tk/variable.rb6
1 files changed, 2 insertions, 4 deletions
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