From: Blue Swirl Date: Sat, 29 Aug 2009 13:37:34 +0000 (+0300) Subject: Fix gcc 3 warning: comparison is always true due to limited range of data type X-Git-Tag: v0.12.0-rc0~1372 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=757506d282c3c579368055b1bf50fa4056dbe5bc;p=qemu-xen-4.2-testing.git Fix gcc 3 warning: comparison is always true due to limited range of data type Signed-off-by: Blue Swirl --- diff --git a/hw/ide/internal.h b/hw/ide/internal.h index 65991a8b0..8766a3ae2 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; }