fix build

This commit is contained in:
fakeshadow 2021-04-16 09:59:19 +08:00
parent 24eb56c3dc
commit d6f3c78e48
1 changed files with 3 additions and 4 deletions

View File

@ -116,12 +116,11 @@ impl Availability {
panic!("Max WorkerHandle count is 512")
};
let off = 1 << idx as u128;
if avail {
self.0[offset] |= 1 << idx as u128;
self.0[offset] |= off;
} else {
let shift = 1 << idx as u128;
self.0[offset] &= ~shift
self.0[offset] &= !off
}
}