Skip to content

Commit

Permalink
Fix two compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 committed Mar 12, 2019
1 parent aeff67e commit db3d08f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/base/cg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ impl<N: Scalar + Ring, D: DimName, S: StorageMut<N, D, D>> SquareMatrix<N, D, S>
{
for i in 0..D::dim() {
for j in 0..D::dim() - 1 {
self[(j, i)] += shift[j] * self[(D::dim() - 1, i)];
let add = shift[j] * self[(D::dim() - 1, i)];
self[(j, i)] += add;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/base/edition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl<N: Scalar + Zero, R: Dim, C: Dim, S: Storage<N, R, C>> Matrix<N, R, C, S> {
for j in 0..ncols.value() {
// FIXME: use unchecked column indexing
let mut res = res.column_mut(j);
let mut src = self.column(j);
let src = self.column(j);

for (destination, source) in irows.clone().enumerate() {
unsafe {
Expand Down

0 comments on commit db3d08f

Please sign in to comment.