Stefan Weil c0f896810b 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 <sw@weilnetz.de>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1411536002-14088-1-git-send-email-sw@weilnetz.de
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2014-09-24 12:51:38 +01:00
..
2014-08-25 00:16:06 +02:00
2013-06-07 14:55:33 +02:00
2013-12-17 20:12:51 +00:00
2013-12-24 18:02:18 +01:00
2014-02-03 14:04:00 +00:00
2014-02-26 17:20:00 +00:00
2014-02-14 16:22:31 +01:00
2013-07-29 21:06:27 +02:00
2014-06-19 18:44:22 +03:00
2014-06-27 13:48:23 +02:00
2014-02-27 10:01:40 +00:00
2014-09-08 12:02:07 +01:00
2014-03-05 03:06:46 +01:00
2014-02-10 10:23:35 +02:00
2013-06-27 15:38:35 -05:00
2014-07-01 04:12:48 +02:00
2014-05-28 17:36:21 +02:00