inomap: fix TestSpill bit check

Wrong bit operator was used.
This commit is contained in:
Jakob Unterwurzacher 2020-05-03 20:28:26 +02:00
parent 8c9c68fb72
commit feaeee90e2
1 changed files with 2 additions and 2 deletions

View File

@ -104,11 +104,11 @@ func TestSpill(t *testing.T) {
var q QIno
q.Ino = maxPassthruIno + 1
out1 := m.Translate(q)
if out1|spillBit == 0 {
if out1&spillBit == 0 {
t.Error("spill bit not set")
}
out2 := m.Translate(q)
if out2|spillBit == 0 {
if out2&spillBit == 0 {
t.Error("spill bit not set")
}
if out1 != out2 {