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:
parent
caea614d4a
commit
dd8c129624
@ -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
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user