This commit is contained in:
Vincent Barrielle 2014-05-12 21:54:18 +02:00
parent 76a8bc3cf1
commit 3dc0e27fd2

View File

@ -258,7 +258,7 @@ impl<N: Clone> Indexable<(uint, uint), N> for DMat<N> {
let offset2 = self.offset(row2, col2);
let count = self.mij.len();
assert!(offset1 < count);
assert!(offset1 < count);
assert!(offset2 < count);
self.mij.as_mut_slice().swap(offset1, offset2);
}