diff options
author | Eric Blake <eblake@redhat.com> | 2019-04-17 12:11:00 -0500 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2019-04-30 15:29:00 +0200 |
commit | 754da86714d550c3f995f11a2587395081362e0a (patch) | |
tree | e344c4e59d35a4e5bb7ca411da77bc01fa2a20d3 /block/qapi.c | |
parent | 0cb98af2187a5c7e1723fc28f8ed359634dff550 (diff) |
cutils: Fix size_to_str() on 32-bit platforms
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-stable@nongnu.org
Reported-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/qapi.c')
0 files changed, 0 insertions, 0 deletions