Fix gcc 3 warning: comparison is always true due to limited range of data type

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Blue Swirl 2009-08-29 16:37:34 +03:00
parent 2000cbc50d
commit 757506d282

View File

@ -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;
}