ruby-changes:13947
From: nagai <ko1@a...>
Date: Sat, 14 Nov 2009 03:36:42 +0900 (JST)
Subject: [ruby-changes:13947] Ruby:r25752 (ruby_1_8): * ext/tk/lib/tk/variable.rb: TkVariable#*(other) and /(other) have a
nagai 2009-11-14 03:36:29 +0900 (Sat, 14 Nov 2009) New Revision: 25752 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25752 Log: * ext/tk/lib/tk/variable.rb: TkVariable#*(other) and /(other) have a bug on handling of the "other" value. Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/ext/tk/lib/tk/variable.rb Index: ruby_1_8/ext/tk/lib/tk/variable.rb =================================================================== --- ruby_1_8/ext/tk/lib/tk/variable.rb (revision 25751) +++ ruby_1_8/ext/tk/lib/tk/variable.rb (revision 25752) @@ -1218,7 +1218,7 @@ 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 @@ 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 Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 25751) +++ ruby_1_8/ChangeLog (revision 25752) @@ -1,3 +1,8 @@ +Sat Nov 14 03:35:29 2009 Hidetoshi NAGAI <nagai@a...> + + * ext/tk/lib/tk/variable.rb: TkVariable#*(other) and /(other) have a + bug on handling of the "other" value. + Thu Nov 12 23:38:47 2009 Takeyuki FUJIOKA <xibbar@r...> * lib/cgi.rb: fix command-line option of -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/