Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
virtio: Fix wrong type cast from pointer to long
Compiler warning (w32, w64): include/hw/virtio/virtio_ring.h:142:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] When sizeof(long) < sizeof(void *), this is not only a warning but a real program error. Add also missing blanks in the same statement. Signed-off-by: Stefan Weil <[email protected]> Reviewed-by: Markus Armbruster <[email protected]> Reviewed-by: Fam Zheng <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Message-id: [email protected] Signed-off-by: Peter Maydell <[email protected]>
- Loading branch information