diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-08-29 16:37:34 +0300 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-08-29 16:37:34 +0300 |
commit | 757506d282c3c579368055b1bf50fa4056dbe5bc (patch) | |
tree | fbb87010f79781bca248cd7abe54945df952b63e /hw/ide | |
parent | 2000cbc50d3ec39086d1a831e59833d35f500891 (diff) | |
download | qemu-757506d282c3c579368055b1bf50fa4056dbe5bc.zip qemu-757506d282c3c579368055b1bf50fa4056dbe5bc.tar.gz qemu-757506d282c3c579368055b1bf50fa4056dbe5bc.tar.bz2 |
Fix gcc 3 warning: comparison is always true due to limited range of data type
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/ide')
-rw-r--r-- | hw/ide/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |