summaryrefslogtreecommitdiff
path: root/internal/inomap
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-05-03 20:28:26 +0200
committerJakob Unterwurzacher2020-05-03 20:28:26 +0200
commitfeaeee90e271b0c0f5747f856df2b622447505cc (patch)
tree18fc001931c8a68f894d28a782c41b478d204d7a /internal/inomap
parent8c9c68fb724150654721bd665cc9233c641a0ea5 (diff)
inomap: fix TestSpill bit check
Wrong bit operator was used.
Diffstat (limited to 'internal/inomap')
-rw-r--r--internal/inomap/inomap_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/inomap/inomap_test.go b/internal/inomap/inomap_test.go
index 931547e..6fbb4ef 100644
--- a/internal/inomap/inomap_test.go
+++ b/internal/inomap/inomap_test.go
@@ -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 {