mirror of
https://github.com/uutils/coreutils
synced 2025-01-19 00:24:13 +00:00
fix 32-bit/i686 target builds
This commit is contained in:
parent
ebc29e813b
commit
1d26e901f9
1 changed files with 4 additions and 1 deletions
|
@ -43,6 +43,9 @@ fn hostid() {
|
|||
result = gethostid();
|
||||
}
|
||||
|
||||
result &= 0xffff_ffff;
|
||||
#[allow(overflowing_literals)]
|
||||
let mask = 0xffff_ffff;
|
||||
|
||||
result &= mask;
|
||||
println!("{:0>8x}", result);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue