summaryrefslogtreecommitdiff
path: root/src/sim/cell
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/cell')
-rw-r--r--src/sim/cell/cell.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/cell/cell.rs b/src/sim/cell/cell.rs
index c4b0a8f..d567893 100644
--- a/src/sim/cell/cell.rs
+++ b/src/sim/cell/cell.rs
@@ -31,7 +31,7 @@ impl Cell {
#[inline]
pub fn rb(self) -> bool {
- self.flags & Self::FLAG_RB == 1
+ (self.flags & Self::FLAG_RB) == Self::FLAG_RB
}
pub fn set_rb(&mut self, rb: bool) {
if rb {