diff --git a/src/ppu.rs b/src/ppu.rs index 96d6de8623c19c1fe75b220b6607ea65b0394a82..d8c64c84d57c2a52448b0e17a228fde5777a5bdb 100644 --- a/src/ppu.rs +++ b/src/ppu.rs @@ -1110,7 +1110,7 @@ impl Ppu { // calculates the sprite line offset by using the SCX register // shifted by 3 meaning that the tiles are 8x8 - let mut line_offset: usize = (scx >> 3) as usize; + let mut line_offset = (scx >> 3) as usize; // calculates the index of the initial tile in drawing, // if the tile data set in use is #1, the indexes are