* lib/matrix.rb: fix a coerce bug of Vector. [ruby-core: 12190]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7dc5120630
commit
ee9e5a6ea8
@ -1,3 +1,7 @@
|
|||||||
|
Tue Sep 18 22:08:42 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/matrix.rb: fix a coerce bug of Vector. [ruby-core: 12190]
|
||||||
|
|
||||||
Mon Sep 17 21:06:03 2007 Minero Aoki <aamine@loveruby.net>
|
Mon Sep 17 21:06:03 2007 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
* lib/net/http.rb (HTTP::GenericRequest#initialize): check path is
|
* lib/net/http.rb (HTTP::GenericRequest#initialize): check path is
|
||||||
|
@ -1374,7 +1374,7 @@ class Vector
|
|||||||
def coerce(other)
|
def coerce(other)
|
||||||
case other
|
case other
|
||||||
when Numeric
|
when Numeric
|
||||||
return Scalar.new(other), self
|
return Matrix::Scalar.new(other), self
|
||||||
else
|
else
|
||||||
raise TypeError, "#{self.class} can't be coerced into #{other.class}"
|
raise TypeError, "#{self.class} can't be coerced into #{other.class}"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user