Hi Ulrich, Thanks. Good point; I'll change host_to_fileio_uint to take a LONGEST, and update the callers' casts to match, in the next version. I'll wait for Andrew's comments before sending it. Thanks, Abhay
Abhay Kandpal <abhay@linux.ibm.com> wrote:static inline void host_to_fileio_uint (long num, fio_uint_t fnum) { + if ((ULONGEST) num > 0xffffffff) + warning (_("file-i/o: value %s does not fit in 32 bits and willbe "+ "truncated"), plongest (num));"num" should now really be LONGEST in the API already, otherwise you have already have silently truncated on platforms where long is 32 bits. Otherwise this series now looks good to me, but please give Andrew time to comment as well. Bye, Ulrich