[PPL-devel] [GIT] ppl/ppl(sparse_matrices): Sparse_Row: fix a bug in the constructor from a Dense_Row with a specified size.
Marco Poletti
poletti.marco at gmail.com
Wed Dec 7 22:53:47 CET 2011
Module: ppl/ppl
Branch: sparse_matrices
Commit: 0eb66773f43939abd0d8837e957b63c6e5e1c665
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=0eb66773f43939abd0d8837e957b63c6e5e1c665
Author: Marco Poletti <poletti.marco at gmail.com>
Date: Wed Dec 7 22:53:24 2011 +0100
Sparse_Row: fix a bug in the constructor from a Dense_Row with a specified size.
---
src/Sparse_Row.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Sparse_Row.cc b/src/Sparse_Row.cc
index f17b907..a6ad4fb 100644
--- a/src/Sparse_Row.cc
+++ b/src/Sparse_Row.cc
@@ -102,8 +102,8 @@ PPL::Sparse_Row::Sparse_Row(const PPL::Dense_Row& row)
PPL::Sparse_Row::Sparse_Row(const Dense_Row& row, dimension_type sz,
dimension_type capacity)
- : tree(Sparse_Row_from_Dense_Row_helper_iterator(row, sz),
- Sparse_Row_from_Dense_Row_helper_function(row, sz)),
+ : tree(Sparse_Row_from_Dense_Row_helper_iterator(row, row.size()),
+ Sparse_Row_from_Dense_Row_helper_function(row, row.size())),
size_(sz) {
(void)capacity;
PPL_ASSERT(OK());
More information about the PPL-devel
mailing list