qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [COMMIT 757506d] Fix gcc 3 warning: comparison is always


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 757506d] Fix gcc 3 warning: comparison is always true due tolimited range of data type
Date: Sat, 29 Aug 2009 13:39:38 -0000

From: Blue Swirl <address@hidden>

Signed-off-by: Blue Swirl <address@hidden>

diff --git a/hw/ide/internal.h b/hw/ide/internal.h
index 65991a8..8766a3a 100644
--- a/hw/ide/internal.h
+++ b/hw/ide/internal.h
@@ -486,7 +486,7 @@ static inline IDEState *idebus_active_if(IDEBus *bus)
 
 static inline IDEState *bmdma_active_if(BMDMAState *bmdma)
 {
-    assert(bmdma->unit != -1);
+    assert(bmdma->unit != (uint8_t)-1);
     return bmdma->bus->ifs + bmdma->unit;
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]