projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2000cbc
)
Fix gcc 3 warning: comparison is always true due to limited range of data type
author
Blue Swirl
<blauwirbel@gmail.com>
Sat, 29 Aug 2009 13:37:34 +0000
(16:37 +0300)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sat, 29 Aug 2009 13:37:34 +0000
(16:37 +0300)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/ide/internal.h
patch
|
blob
|
history
diff --git
a/hw/ide/internal.h
b/hw/ide/internal.h
index 65991a8b07bf3e40631a594cd034f6252fe1f268..8766a3ae2c9806cd83471a3dd0c9a58ae1913a03 100644
(file)
--- 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;
}