]> git.ipfire.org Git - thirdparty/libvirt.git/commit
blockjob: avoid 32-bit compilation warning
authorEric Blake <eblake@redhat.com>
Mon, 8 Sep 2014 14:50:48 +0000 (08:50 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 8 Sep 2014 14:50:48 +0000 (08:50 -0600)
commitefe5061f5a61d04b1bf21fcac2919a2325f54150
tree62d6e5e48d8f1d493d2add58c6a83af83b503dde
parentafb4c6b6634e16beb5ddbca3f1113c615e10e7e4
blockjob: avoid 32-bit compilation warning

Commit c1d75de caused this warning on 32-bit platforms (fatal when
-Werror is enabled):

virsh-domain.c: In function 'cmdBlockCopy':
virsh-domain.c:2003:17: error: comparison is always false due to limited range of data type [-Werror=type-limits]

Forcing the left side of the < to be ull instead of ul shuts up
the 32-bit compiler while still protecting 64-bit code from overflow.

* tools/virsh-domain.c (cmdBlockCopy): Add type coercion.

Signed-off-by: Eric Blake <eblake@redhat.com>
tools/virsh-domain.c