1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-14 19:16:17 +00:00

<< precedence

This commit is contained in:
Michael Gehring 2015-01-08 14:04:14 +01:00
parent f580275ef8
commit 9aef41b8f6
2 changed files with 4 additions and 4 deletions

View file

@ -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 {

View file

@ -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
}
};