fixed compilation warning

This commit is contained in:
Stanislav Shwartsman 2013-06-25 17:32:33 +00:00
parent 192aa1f369
commit 74c2cb0127

View File

@ -348,7 +348,7 @@ bx_serial_c::init(void)
for (unsigned addr = ports[i]; addr < (unsigned)(ports[i] + 8); addr++) {
BX_DEBUG(("com%d initialize register for read/write: 0x%04x", i + 1, addr));
if (addr < (ports[i] + 7)) {
if (addr < (unsigned)(ports[i] + 7)) {
DEV_register_ioread_handler(this, read_handler, addr, name, 3);
DEV_register_iowrite_handler(this, write_handler, addr, name, 3);
} else {