From 142231d35597a048d83d5066aed23088b677e0c5 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Tue, 21 Sep 2021 12:13:55 -0300 Subject: [PATCH] chore(ppu): remoe unnecessary brackets --- src/ppu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ppu.rs b/src/ppu.rs index 1f166e6..9e80a09 100644 --- a/src/ppu.rs +++ b/src/ppu.rs @@ -700,7 +700,7 @@ impl PixelFetcher { let id = self.back.tile.id.expect("Tile Number is present"); let tile_data_addr = match control.tile_data_addr() { - TileDataAddress::X8800 => 0x9000u16.wrapping_add(((id as i8) as i16 * 16) as u16), + TileDataAddress::X8800 => 0x9000u16.wrapping_add((id as i8 as i16 * 16) as u16), TileDataAddress::X8000 => 0x8000 + (id as u16 * 16), };