diff options
author | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-18 13:12:47 +0000 |
---|---|---|
committer | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-18 13:12:47 +0000 |
commit | ee9e5a6ea87fb0365a939639d027ade3eee93cb1 (patch) | |
tree | c7647017a4bdacfa6a527db3e96b6b2424ab8c89 /lib | |
parent | 7dc51206303e03e37ade64ee5e59cd35bed5b530 (diff) | |
download | ruby-ee9e5a6ea87fb0365a939639d027ade3eee93cb1.tar.gz |
* 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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/matrix.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb index 6c4f4f5482..8f2d472b88 100644 --- a/lib/matrix.rb +++ b/lib/matrix.rb @@ -1374,7 +1374,7 @@ class Vector 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 |