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

ruby-changes:13953

From: nagai <ko1@a...>
Date: Sat, 14 Nov 2009 04:11:34 +0900 (JST)
Subject: [ruby-changes:13953] Ruby:r25759 (ruby_1_8): * ext/tk/lib/tk/variable.rb (TkVariable::coerce): fix bug on a numeric value.

nagai	2009-11-14 04:11:20 +0900 (Sat, 14 Nov 2009)

  New Revision: 25759

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

  Log:
    * ext/tk/lib/tk/variable.rb (TkVariable::coerce): fix bug on a numeric 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 25758)
+++ ruby_1_8/ext/tk/lib/tk/variable.rb	(revision 25759)
@@ -1164,10 +1164,8 @@
       [other, self.to_s]
     when Symbol
       [other, self.to_sym]
-    when Integer
-      [other, self.to_i]
-    when Float
-      [other, self.to_f]
+    when Numeric
+      [other, self.numeric]
     when Array
       [other, self.to_a]
     else
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 25758)
+++ ruby_1_8/ChangeLog	(revision 25759)
@@ -1,3 +1,8 @@
+Sat Nov 14 04:07:06 2009  Hidetoshi NAGAI  <nagai@a...>
+
+	* ext/tk/lib/tk/variable.rb (TkVariable::coerce): fix bug on a
+	  numeric value.
+
 Sat Nov 14 03:35:29 2009  Hidetoshi NAGAI  <nagai@a...>
 
 	* ext/tk/lib/tk/variable.rb: TkVariable#*(other) and /(other) have a

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

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