aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--lib/matrix.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f45b5b1093..8e3e207354 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* lib/net/http.rb (HTTP::GenericRequest#initialize): check path is
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