From d8126c20c49544633f12ce90d578804c05be78a5 Mon Sep 17 00:00:00 2001 From: Fabio Priuli Date: Fri, 24 May 2013 06:35:11 +0000 Subject: [PATCH] am53cf96: apple GCC complained about "warning: comparison is always true due to limited range of data type". nw. --- src/emu/machine/am53cf96.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/emu/machine/am53cf96.c b/src/emu/machine/am53cf96.c index e3bec4e82ce..8cec59c600a 100644 --- a/src/emu/machine/am53cf96.c +++ b/src/emu/machine/am53cf96.c @@ -94,7 +94,7 @@ WRITE8_MEMBER( am53cf96_device::write ) scsi_regs[REG_IRQSTATE] = 8; // indicate success logerror("53cf96: reset target ID = %d (PC = %x)\n", last_id, space.device().safe_pc()); - if (last_id >= 0 && last_id <= 7 && devices[last_id]) + if (/*last_id >= 0 &&*/ last_id <= 7 && devices[last_id]) { devices[last_id]->reset(); } @@ -122,7 +122,7 @@ WRITE8_MEMBER( am53cf96_device::write ) } logerror("53cf96: command %x exec. target ID = %d (PC = %x)\n", fifo[1], last_id, space.device().safe_pc()); - if (last_id >= 0 && last_id <= 7 && devices[last_id]) + if (/*last_id >= 0 &&*/ last_id <= 7 && devices[last_id]) { int length; @@ -198,7 +198,7 @@ void am53cf96_device::dma_read_data(int bytes, UINT8 *pData) { scsi_regs[REG_STATUS] |= 0x10; // indicate DMA finished - if (last_id >= 0 && last_id <= 7 && devices[last_id]) + if (/*last_id >= 0 &&*/ last_id <= 7 && devices[last_id]) { devices[last_id]->ReadData( pData, bytes ); } @@ -215,7 +215,7 @@ void am53cf96_device::dma_write_data(int bytes, UINT8 *pData) scsi_regs[REG_STATUS] |= 0x10; // indicate DMA finished - if (last_id >= 0 && last_id <= 7 && devices[last_id]) + if (/*last_id >= 0 &&*/ last_id <= 7 && devices[last_id]) { devices[last_id]->WriteData( pData, bytes ); }