Merge pull request #562 from est31/master

Fix two compiler warnings
This commit is contained in:
Sébastien Crozet 2019-03-18 07:07:15 +01:00 committed by GitHub
commit d6cca60837
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}
}
}

View File

@ -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 {