mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-15 03:26:18 +00:00
<< precedence
This commit is contained in:
parent
f580275ef8
commit
9aef41b8f6
2 changed files with 4 additions and 4 deletions
|
@ -26,7 +26,7 @@ pub static CRC_TABLE: [u32; {}] = {};", CRC_TABLE_LEN, table);
|
|||
|
||||
#[inline]
|
||||
fn crc_entry(input: u8) -> u32 {
|
||||
let mut crc = input as u32 << 24;
|
||||
let mut crc = (input as u32) << 24;
|
||||
|
||||
for _ in range(0u, 8) {
|
||||
if crc & 0x80000000 != 0 {
|
||||
|
|
|
@ -338,11 +338,11 @@ fn path(path: &[u8], cond: PathCondition) -> bool {
|
|||
use libc::{getgid, getuid};
|
||||
let (uid, gid) = unsafe { (getuid(), getgid()) };
|
||||
if uid == stat.st_uid {
|
||||
stat.st_mode & (p as mode_t << 6) != 0
|
||||
stat.st_mode & ((p as mode_t) << 6) != 0
|
||||
} else if gid == stat.st_gid {
|
||||
stat.st_mode & (p as mode_t << 3) != 0
|
||||
stat.st_mode & ((p as mode_t) << 3) != 0
|
||||
} else {
|
||||
stat.st_mode & (p as mode_t << 0) != 0
|
||||
stat.st_mode & ((p as mode_t) << 0) != 0
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue