From 298fbfb4be11b45d64fc18ff8bf3423fd6992459 Mon Sep 17 00:00:00 2001 From: Corwin Kuiper Date: Wed, 28 Apr 2021 20:02:04 +0100 Subject: [PATCH] satisfy linter --- agb/src/display/tiled0.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/src/display/tiled0.rs b/agb/src/display/tiled0.rs index fdec24fe..3367a3e8 100644 --- a/agb/src/display/tiled0.rs +++ b/agb/src/display/tiled0.rs @@ -349,7 +349,7 @@ impl Tiled0 { // round up rather than down let end_block = (start_tile * 8 + tiles.len() as u32 + u32_per_block - 1) / u32_per_block; - let blocks_to_use: u32 = (1 << (end_block - start_block)) - 1 << start_block; + let blocks_to_use: u32 = ((1 << (end_block - start_block)) - 1) << start_block; assert!( self.used_blocks & blocks_to_use == 0,