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:
parent
ebc29e813b
commit
1d26e901f9
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue