diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2013-08-04 14:27:59 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2013-08-04 14:27:59 +0000 |
| commit | dd957026bd798ebe34eff033b4a839d63b790b04 (patch) | |
| tree | a7e5105597676cfb1f4d293640c3f411e9bd2d32 /src/syseq.h | |
| parent | cppcheck: c-style casts > c++ style casts (diff) | |
| download | inkscape-dd957026bd798ebe34eff033b4a839d63b790b04.tar.gz inkscape-dd957026bd798ebe34eff033b4a839d63b790b04.zip | |
cppcheck
(bzr r12467)
Diffstat (limited to 'src/syseq.h')
| -rw-r--r-- | src/syseq.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/syseq.h b/src/syseq.h index 4e7ccd943..582f2949f 100644 --- a/src/syseq.h +++ b/src/syseq.h @@ -181,10 +181,9 @@ static std::vector<int> gauss_jordan (double A[S][T], int avoid_col = -1) { if (avoid_col != -1) { cols_used.push_back (avoid_col); } - int col; for (int i = 0; i < S; ++i) { /* for each row find a pivot element of maximal absolute value, skipping the columns that were used before */ - col = find_pivot<S,T>(A, i, cols_used); + int col = find_pivot<S,T>(A, i, cols_used); cols_used.push_back(col); if (col == -1) { // no non-zero elements in the row |
