diff options
-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 65991a8b07..8766a3ae2c 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; } |