Change condition since we went out of bound

This commit is contained in:
Olssdani
2023-03-21 14:29:07 +01:00
parent 83d78fb970
commit 8eaabb1c90

View File

@@ -255,7 +255,7 @@ impl BitMatrix {
/// Confusingly returns true if the requested element is out of bounds
pub fn check_in_bounds(&self, x: u32, y: u32) -> bool {
(self.get_offset(y, x)) > self.bits.len()
(self.get_offset(y, x)) >= self.bits.len()
}
/**