lapack/{gonum,testlapack}: apply semgrep-go suggestions (#1743)

This commit is contained in:
Patricio Whittingslow
2021-11-16 12:51:06 -03:00
committed by GitHub
parent 27ed1a9eeb
commit 030e69b6a7
2 changed files with 5 additions and 9 deletions

View File

@@ -175,7 +175,7 @@ func dtrexcTest(t *testing.T, impl Dtrexcer, rnd *rand.Rand, n, ifst, ilst, extr
if modMin <= j && j < modMax {
continue
}
if q.Data[i*q.Stride+j]-qCopy.Data[i*qCopy.Stride+j] != 0 {
if q.Data[i*q.Stride+j] != qCopy.Data[i*qCopy.Stride+j] {
t.Errorf("%v: unexpected modification of Q[%v,%v]", name, i, j)
}
}