1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

fix 32-bit/i686 target builds

This commit is contained in:
Roy Ivy III 2020-01-01 05:06:34 +00:00
parent ebc29e813b
commit 1d26e901f9

View file

@ -43,6 +43,9 @@ fn hostid() {
result = gethostid(); result = gethostid();
} }
result &= 0xffff_ffff; #[allow(overflowing_literals)]
let mask = 0xffff_ffff;
result &= mask;
println!("{:0>8x}", result); println!("{:0>8x}", result);
} }