summaryrefslogtreecommitdiff
path: root/hw/rtl8139.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-16 03:02:09 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-16 03:02:09 +0000
commit60fe76f38605e0e2eedb436d0945af283029c4e0 (patch)
treea3ede82bb8b80dc9170f1a241baf58bc3081ab62 /hw/rtl8139.c
parent223d4670a0cf539a0e8cc6a23aad28a8340dded8 (diff)
downloadqemu-60fe76f38605e0e2eedb436d0945af283029c4e0.tar.gz
Fix wrong signedness, by Andre Przywara.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3815 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/rtl8139.c')
-rw-r--r--hw/rtl8139.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/rtl8139.c b/hw/rtl8139.c
index 6e3c023b3d..8a23bb7b9a 100644
--- a/hw/rtl8139.c
+++ b/hw/rtl8139.c
@@ -3119,7 +3119,7 @@ static uint32_t rtl8139_mmio_readl(void *opaque, target_phys_addr_t addr)
static void rtl8139_save(QEMUFile* f,void* opaque)
{
RTL8139State* s=(RTL8139State*)opaque;
- int i;
+ unsigned int i;
pci_device_save(s->pci_dev, f);
@@ -3205,7 +3205,8 @@ static void rtl8139_save(QEMUFile* f,void* opaque)
static int rtl8139_load(QEMUFile* f,void* opaque,int version_id)
{
RTL8139State* s=(RTL8139State*)opaque;
- int i, ret;
+ unsigned int i;
+ int ret;
/* just 2 versions for now */
if (version_id > 3)