]> git.proxmox.com Git - mirror_qemu.git/commit
vfio: use matching sizeof type
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 17 Jan 2024 16:03:44 +0000 (17:03 +0100)
committerCédric Le Goater <clg@redhat.com>
Mon, 29 Jan 2024 07:26:25 +0000 (08:26 +0100)
commit850051b94b4eac2e2eec985b313d840bd5eddb44
tree58fd70111c9ffc4fe09cf4ce0df412f7b661ef0f
parent7a1dc45af581d2b643cdbf33c01fd96271616fbd
vfio: use matching sizeof type

Do not use uint64_t for the type of the declaration and __u64 when
computing the number of elements in the array.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/vfio/common.c