From b33ca620b0a497dd91b5caab30f7a0c5be429396 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Tue, 7 May 2024 11:35:48 +0200 Subject: [PATCH] bugfix: correct typing --- src/cell.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cell.rs b/src/cell.rs index 46fc530..3a14a5b 100644 --- a/src/cell.rs +++ b/src/cell.rs @@ -41,7 +41,7 @@ pub fn display_grid(grid: &Vec>) { let y = j as usize; let state = grid[x][y].state as usize; - let index = map_num(state, 0, Q, 0, BRIGHTNESS.len()); + let index = map_num(state, 0, Q as usize, 0, BRIGHTNESS.len()); print!("{}", BRIGHTNESS.chars().nth(index).unwrap()); } println!();