Skip to content

Commit

Permalink
Add back debug_assert
Browse files Browse the repository at this point in the history
  • Loading branch information
aelred committed Sep 30, 2024
1 parent 4c419f1 commit 67525db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ppu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ struct ShiftRegister(u16, u16);

impl ShiftRegister {
fn set_next_bytes(&mut self, byte0: u8, byte1: u8) {
// debug_assert_eq!(self.0 & 0x00FF, 0, "Lower byte should have shifted out");
// debug_assert_eq!(self.1 & 0x00FF, 0, "Lower byte should have shifted out");
debug_assert_eq!(self.0 & 0x00FF, 0, "Lower byte should have shifted out");
debug_assert_eq!(self.1 & 0x00FF, 0, "Lower byte should have shifted out");
self.0 |= u16::from(byte0);
self.1 |= u16::from(byte1);
}
Expand Down

0 comments on commit 67525db

Please sign in to comment.