build error on 32bit architectures in release 0.5.0 - literal out of range for `isize`
Hello and thank you for the release of 0.5.0.
I'm updating the Alpine Linux package and ran into the following compile error on 32bit CPU architectures (armv7, armhf and x86):
error: literal out of range for `isize`
--> src/error_codes.inc:878:25
|
878 | GPG_ERR_MINUS_ONE = 4294967295,
| ^^^^^^^^^^
|
= note: the literal `4294967295` does not fit into the type `isize` whose range is `-2147483648..=2147483647`
= note: `#[deny(overflowing_literals)]` on by default
If I understand correctly, this might be mitigated by changing that line to:
GPG_ERR_MINUS_ONE = isize::MAX,
I'm not sure if that is really what was intended, though, since 4294967295 is 2^32 - 1, where as isize::MAX would be 2^31 - 1 on 32 bit archs and become 2^63 − 1 on 64 bit ones.
If it helps and the above suggestion would be an appropriate solution, I'm happy to raise an MR for this.