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:
parent
57b90ca3dd
commit
4cae9a649a
1 changed files with 1 additions and 1 deletions
|
@ -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],
|
||||
|
|
Loading…
Add table
Reference in a new issue