[PPL-devel] [GIT] ppl/ppl(sparse_matrices): Use computed reference ( and avoid unused variable warning).
Enea Zaffanella
zaffanella at cs.unipr.it
Sun Dec 11 13:35:10 CET 2011
Module: ppl/ppl
Branch: sparse_matrices
Commit: 119aeb2aa8f1ec272b892ea9b181793a3f138881
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=119aeb2aa8f1ec272b892ea9b181793a3f138881
Author: Enea Zaffanella <zaffanella at cs.unipr.it>
Date: Sun Dec 11 10:01:06 2011 +0100
Use computed reference (and avoid unused variable warning).
---
src/Linear_System.templates.hh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Linear_System.templates.hh b/src/Linear_System.templates.hh
index 32c45c7..cf92afe 100644
--- a/src/Linear_System.templates.hh
+++ b/src/Linear_System.templates.hh
@@ -292,11 +292,11 @@ Linear_System<Row>::insert_pending(Linear_System& y, Recycle_Input) {
// This loop must use an increasing index (instead of a decreasing one) to
// preserve the row ordering.
for (dimension_type i = 0; i < y.num_rows(); i++)
- insert_pending(y.rows[i], Recycle_Input());
+ x.insert_pending(y.rows[i], Recycle_Input());
y.clear();
- PPL_ASSERT(OK());
+ PPL_ASSERT(x.OK());
}
template <typename Row>
More information about the PPL-devel
mailing list