From 02b06363c6c1aea9ab677484e36d611d642159e0 Mon Sep 17 00:00:00 2001 From: nagai Date: Fri, 13 Nov 2009 18:36:38 +0000 Subject: * 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 --- ChangeLog | 5 +++++ ext/tk/lib/tk/variable.rb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7f4b563ee..75023719e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Nov 14 03:35:29 2009 Hidetoshi NAGAI + + * ext/tk/lib/tk/variable.rb: TkVariable#*(other) and /(other) have a + bug on handling of the "other" value. + Fri Nov 13 21:18:15 2009 Yusuke Endoh * ext/zlib/zlib.c (rb_zlib_adler32): fix typo. 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 -- cgit