summaryrefslogtreecommitdiffstats
path: root/hw/rtl8139.c
diff options
context:
space:
mode:
authorths2007-12-16 04:02:09 +0100
committerths2007-12-16 04:02:09 +0100
commit60fe76f38605e0e2eedb436d0945af283029c4e0 (patch)
treea3ede82bb8b80dc9170f1a241baf58bc3081ab62 /hw/rtl8139.c
parentSplit block-raw.c into block-raw-posix.c and block-raw-win32.c, by (diff)
downloadqemu-60fe76f38605e0e2eedb436d0945af283029c4e0.tar.gz
qemu-60fe76f38605e0e2eedb436d0945af283029c4e0.tar.xz
qemu-60fe76f38605e0e2eedb436d0945af283029c4e0.zip
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)