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 &= 0xffff_ffff;
#[allow(overflowing_literals)]
let mask = 0xffff_ffff;
result &= mask;
println!("{:0>8x}", result);
}