mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-25 11:31:46 +00:00
bugfix: correct typing
This commit is contained in:
parent
ef52dcfd7d
commit
b33ca620b0
@ -41,7 +41,7 @@ pub fn display_grid(grid: &Vec<Vec<Cell>>) {
|
||||
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!();
|
||||
|
Loading…
Reference in New Issue
Block a user