[前][次][番号順一覧][スレッド一覧]

ruby-changes:13950

From: nagai <ko1@a...>
Date: Sat, 14 Nov 2009 03:36:58 +0900 (JST)
Subject: [ruby-changes:13950] Ruby:r25754 (trunk): * ext/tk/lib/tk/variable.rb: TkVariable#*(other) and /(other) have a

nagai	2009-11-14 03:36:38 +0900 (Sat, 14 Nov 2009)

  New Revision: 25754

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25754

  Log:
    * ext/tk/lib/tk/variable.rb: TkVariable#*(other) and /(other) have a
      bug on handling of the "other" value.

  Modified files:
    trunk/ChangeLog
    trunk/ext/tk/lib/tk/variable.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25753)
+++ ChangeLog	(revision 25754)
@@ -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.
+
 Fri Nov 13 21:18:15 2009  Yusuke Endoh  <mame@t...>
 
 	* ext/zlib/zlib.c (rb_zlib_adler32): fix typo.
Index: ext/tk/lib/tk/variable.rb
===================================================================
--- ext/tk/lib/tk/variable.rb	(revision 25753)
+++ ext/tk/lib/tk/variable.rb	(revision 25754)
@@ -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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]