summaryrefslogtreecommitdiff
path: root/lib/matrix.rb
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-03 03:38:06 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-03 03:38:06 +0000
commitf59098d1182f08594078bc458820c8ab8c972c46 (patch)
tree5835e3a4498e5f84f1f5ff722f3f812c8a4dabdf /lib/matrix.rb
parent1b5acebef2d447a3dbed6cf5e146fda74b81f10d (diff)
* lib/matrix.rb: Fix Matrix.rows copy bug.
Patch by Arron Mabrey. [Fix GH-707] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/matrix.rb')
-rw-r--r--lib/matrix.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb
index ed5390f..45c24d1 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -152,7 +152,7 @@ class Matrix
# -1 66
#
def Matrix.rows(rows, copy = true)
- rows = convert_to_array(rows)
+ rows = convert_to_array(rows, copy)
rows.map! do |row|
convert_to_array(row, copy)
end