1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Matrix used range.size, which no longer exists

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
dave 2003-04-24 22:51:46 +00:00
parent caea614d4a
commit dd8c129624
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2003-04-24 Dave Thomas <dave@thomases.com>
* lib/matrix.rb (Matrix#minor): Used Range#size, which no longer
exists.
2003-04-24 Dave Thomas <dave@thomases.com>
* lib/complex.rb (new!): Complex.new had been made private, but

View file

@ -435,9 +435,11 @@ class Matrix
case param.size
when 2
from_row = param[0].first
size_row = param[0].size
size_row = param[0].end - from_row
size_row += 1 unless param[0].exclude_end?
from_col = param[1].first
size_col = param[1].size
size_col = param[1].end - from_col
size_col += 1 unless param[1].exclude_end?
when 4
from_row = param[0]
size_row = param[1]