From 9216d4c67216b3577f33c8d6d54c0249388c957c Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 29 Aug 2009 16:37:34 +0300 Subject: [PATCH] Fix gcc 3 warning: comparison is always true due to limited range of data type Signed-off-by: Blue Swirl --- hw/ide/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.7.4