[PATCH] Use signed 16-bit values for ivshmem register writes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



fixes gcc 4.1 warning

Signed-off-by: Cam Macdonell <cam@xxxxxxxxxxxxxx>
---
 hw/ivshmem.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/ivshmem.c b/hw/ivshmem.c
index bbb5cba..fa9c684 100644
--- a/hw/ivshmem.c
+++ b/hw/ivshmem.c
@@ -181,8 +181,8 @@ static void ivshmem_io_writel(void *opaque, target_phys_addr_t addr,
     IVShmemState *s = opaque;
 
     uint64_t write_one = 1;
-    uint16_t dest = val >> 16;
-    uint16_t vector = val & 0xff;
+    int16_t dest = val >> 16;
+    int16_t vector = val & 0xff;
 
     addr &= 0xfc;
 
-- 
1.6.6.1

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux