Describe the bug
when cross-compiling for 32-bit linux, the libc::sysconf call returns a 32-bit integer which is incompatible with the i64 it wants to be stored in.
PR #430 made this change but it also removed the cast that made the previous version work on all platforms.
To Reproduce
Cross-compile using the i686-unknown-linux-musl target.
Additional context
Ran into this problem while building multi-arch docker images. It might be an idea to add cross-compilation to CI to catch problems like this in the future
Describe the bug when cross-compiling for 32-bit linux, the
libc::sysconf
call returns a 32-bit integer which is incompatible with thei64
it wants to be stored in.PR #430 made this change but it also removed the cast that made the previous version work on all platforms.
To Reproduce
Cross-compile using the
i686-unknown-linux-musl
target.Expected behavior There is no reason why it shouldn't be able to compile on 32-bit systems.
System information
stable-x86_64-unknown-linux-gnu unchanged - rustc 1.61.0 (fe5b13d68 2022-05-18)
Additional context Ran into this problem while building multi-arch docker images. It might be an idea to add cross-compilation to CI to catch problems like this in the future