ruby-changes:1976
From: ko1@a...
Date: 18 Sep 2007 22:13:14 +0900
Subject: [ruby-changes:1976] keiju - Ruby:r13467 (trunk): * lib/matrix.rb: fix a coerce bug of Vector. [ruby-coRe: 12190]
keiju 2007-09-18 22:12:47 +0900 (Tue, 18 Sep 2007)
New Revision: 13467
Modified files:
trunk/ChangeLog
trunk/lib/matrix.rb
Log:
* lib/matrix.rb: fix a coerce bug of Vector. [ruby-core: 12190]
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13467&r2=13466
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/matrix.rb?r1=13467&r2=13466
Index: ChangeLog
===================================================================
--- ChangeLog (revision 13466)
+++ ChangeLog (revision 13467)
@@ -1,3 +1,7 @@
+Tue Sep 18 22:08:42 2007 Keiju Ishitsuka <keiju@r...>
+
+ * lib/matrix.rb: fix a coerce bug of Vector. [ruby-core: 12190]
+
Mon Sep 17 21:06:03 2007 Minero Aoki <aamine@l...>
* lib/net/http.rb (HTTP::GenericRequest#initialize): check path is
Index: lib/matrix.rb
===================================================================
--- lib/matrix.rb (revision 13466)
+++ lib/matrix.rb (revision 13467)
@@ -1374,7 +1374,7 @@
def coerce(other)
case other
when Numeric
- return Scalar.new(other), self
+ return Matrix::Scalar.new(other), self
else
raise TypeError, "#{self.class} can't be coerced into #{other.class}"
end
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml