[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] virtio: Fix wrong type cast from pointer to lon
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH] virtio: Fix wrong type cast from pointer to long |
Date: |
Wed, 24 Sep 2014 10:53:07 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Wed, Sep 24, 2014 at 07:20:02AM +0200, Stefan Weil wrote:
> 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 <address@hidden>
> ---
>
> Peter, could you please apply this bug fix directly without pull request?
>
> Thanks
> Stefan
>
> include/hw/virtio/virtio_ring.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
pgpjYQDICCWgW.pgp
Description: PGP signature