mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-04 02:24:12 +02:00
Applied a number of clippy suggestions
This commit is contained in:
parent
810ca452b0
commit
7d5edd9de8
5 changed files with 9 additions and 13 deletions
|
|
@ -731,7 +731,7 @@ pub fn encode_var_int_fixed(mut int: u32) -> u64 {
|
|||
let mut out = 0;
|
||||
for i in 0..4 {
|
||||
let byte: u8 = int as u8 & 0x7F;
|
||||
out |= ((byte | 0x80) as u64) << i * 8;
|
||||
out |= ((byte | 0x80) as u64) << (i * 8);
|
||||
int >>= 7;
|
||||
}
|
||||
out |= (int as u64) << 32;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue