mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
refactor/polish ~ fix cargo clippy
complaints (unreadable_literal)
This commit is contained in:
parent
75f05df119
commit
9b145bb6c4
1 changed files with 2 additions and 2 deletions
|
@ -41,9 +41,9 @@ fn crc_entry(input: u8) -> u32 {
|
||||||
let mut crc = (input as u32) << 24;
|
let mut crc = (input as u32) << 24;
|
||||||
|
|
||||||
for _ in 0..8 {
|
for _ in 0..8 {
|
||||||
if crc & 0x80000000 != 0 {
|
if crc & 0x8000_0000 != 0 {
|
||||||
crc <<= 1;
|
crc <<= 1;
|
||||||
crc ^= 0x04c11db7;
|
crc ^= 0x04c1_1db7;
|
||||||
} else {
|
} else {
|
||||||
crc <<= 1;
|
crc <<= 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue