]> git.proxmox.com Git - qemu.git/commit
bswap: Fix width of swap in leul_to_cpu
authorRichard Henderson <rth@twiddle.net>
Tue, 5 Feb 2013 00:21:06 +0000 (16:21 -0800)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 6 Feb 2013 14:29:21 +0000 (08:29 -0600)
commit91107fdf4443d2171e06840e87277bb7a047343b
tree389f64ce101a56c0fe6d5600211c1856bc9feb31
parent5f876756c57c15f5e14d4136fc432b74f05f082b
bswap: Fix width of swap in leul_to_cpu

The misnamed HOST_LONG_BITS is really HOST_POINTER_BITS.  Here we're
explicitly using an unsigned long, rather than uintptr_t, so it is
more correct to select the swap size via ULONG_MAX.

Acked-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
include/qemu/bswap.h