aboutsummaryrefslogtreecommitdiffstats
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
commitcbad6bc357cf51a3f42115b8dd66db13068f3602 (patch)
treebe2ea48d63b311fea380c8ec79733b82025be01b
parentf22a307d7e137e8fd43e202a7ad731b8505e5f2a (diff)
downloadruby-cbad6bc357cf51a3f42115b8dd66db13068f3602.tar.gz
* ext/tk/lib/tk/variable.rb: TkVariable#*(other) and /(other) have a
bug on handling of the "other" value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/tk/lib/tk/variable.rb4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7f4b563ee7..75023719e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Nov 14 03:35:29 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * 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 <mame@tsg.ne.jp>
* 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 f6ebe551fb..7290658bf8 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