1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-07-09 15:37:45 +00:00

Address two of "warning: casting to the same type is unnecessary (i32 -> i32)"

This commit is contained in:
The Dax 2025-07-04 10:44:28 -04:00 committed by Joshua Goins
parent 57b90ca3dd
commit 4cae9a649a

View file

@ -54,7 +54,7 @@ impl ScramblerKeyGenerator {
let set_radix = self.table_radixes[set as usize];
let set_max = self.table_max[set as usize];
let table_index = (set_radix as i32 * (n_seed_2 as i32 % set_max as i32)) as usize
let table_index = (set_radix * (n_seed_2 as i32 % set_max)) as usize
+ mid_value as usize * n_seed_1 as usize % set_radix as usize;
let set_result = match set {
0 => self.table0[table_index],