summaryrefslogtreecommitdiffstats
path: root/ext/tk
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-13 18:36:38 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-13 18:36:38 +0000
commit02b06363c6c1aea9ab677484e36d611d642159e0 (patch)
treebe2ea48d63b311fea380c8ec79733b82025be01b /ext/tk
parent4e6d3485a56f197a1c5893daa193a955a291b3b9 (diff)
downloadruby-02b06363c6c1aea9ab677484e36d611d642159e0.tar.gz
ruby-02b06363c6c1aea9ab677484e36d611d642159e0.tar.xz
ruby-02b06363c6c1aea9ab677484e36d611d642159e0.zip
* ext/tk/lib/tk/variable.rb: TkVariable#*(other) and /(other) have a
bug on handling of the "other" value. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk')
-rw-r--r--ext/tk/lib/tk/variable.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/lib/tk/variable.rb b/ext/tk/lib/tk/variable.rb
index f6ebe551f..7290658bf 100644
--- a/ext/tk/lib/tk/variable.rb
+++ b/ext/tk/lib/tk/variable.rb
@@ -1218,7 +1218,7 @@ end
end
end
def *(other)
- num_or_str(self._value) * other.to_i
+ num_or_str(self._value) * other
#begin
# number(self._value) * other
#rescue
@@ -1229,7 +1229,7 @@ end
number(self._value) / other
end
def %(other)
- num_or_str(self._value) % other.to_i
+ num_or_str(self._value) % other
#begin
# number(self._value) % other
#rescue