Re: [Qemu-block] [PATCH v3 1/2] cutils: Fix size_to_str() on 32-bit platforms

2019-04-17 Thread Max Reitz
On 17.04.19 19:11, Eric Blake wrote: > When extracting a human-readable size formatter, we changed 'uint64_t > div' pre-patch to 'unsigned long div' post-patch. Which breaks on > 32-bit platforms, resulting in 'inf' instead of intended values larger > than 999GB. > > Fixes: 22951aaa > CC: qemu-sta

[Qemu-block] [PATCH v3 1/2] cutils: Fix size_to_str() on 32-bit platforms

2019-04-17 Thread Eric Blake
When extracting a human-readable size formatter, we changed 'uint64_t div' pre-patch to 'unsigned long div' post-patch. Which breaks on 32-bit platforms, resulting in 'inf' instead of intended values larger than 999GB. Fixes: 22951aaa CC: qemu-sta...@nongnu.org Reported-by: Max Reitz Signed-off-b