Open sharkcz opened 8 months ago
The code implicitly assumes that a c_ulong
= in C a long int
is 64 bit wide. This is true for any 64bit arch but not for a 32bit arch.
Do you see any deeper problem with that?
I could fix it to assume 32bit for a 32bit arch, but I am not sure if that's worth the effort. Easy solution: cast to u32
as the value is 32bit wide anyways.
We could also add a note that we do not support 32bit (and fail compiling if there is an easy way).
Anyhow, this code should never be used on a non s390-machine and we support 64bit only AFAIK. I avoided using arch barriers there to reduce complexity on the pv library crate.
Any suggestions?
Thanks Steffen
We are not planning to build officially the "cloud" tools for i686, but my test build failed with
please see logs from https://koji.fedoraproject.org/koji/taskinfo?taskID=108797994 for all details
Such type mismatch errors often expose some real issues, so please review if it is something we would like to fix.