summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Melissa Goad <alegend45@gmail.com>2018-01-18 14:36:59 -0600
committer Vas Crabb <cuavas@users.noreply.github.com>2018-01-19 23:05:05 +1100
commit262cd554777531f752ee89a356093dca5730fb79 (patch)
tree615ea6acb952698cc85e5d8b22063d7db3685b92
parent946bde46e60c5a9b53800177cbb5c7e9b5ff6c27 (diff)
Fix a couple of Coverity bugs
-rw-r--r--src/devices/bus/a2bus/pc_xporter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bus/a2bus/pc_xporter.cpp b/src/devices/bus/a2bus/pc_xporter.cpp
index 08a3a7f615f..b9eb14acfe7 100644
--- a/src/devices/bus/a2bus/pc_xporter.cpp
+++ b/src/devices/bus/a2bus/pc_xporter.cpp
@@ -319,7 +319,7 @@ uint8_t a2bus_pcxporter_device::read_c800(uint16_t offset)
break;
}
- return m_regs[offset];
+ return m_regs[offset & 0x3ff];
}
}
@@ -436,7 +436,7 @@ void a2bus_pcxporter_device::write_c800(uint16_t offset, uint8_t data)
default:
// logerror("%02x to C800 at %x\n", data, offset + 0xc800);
- m_regs[offset] = data;
+ m_regs[offset & 0x3ff] = data;
break;
}
}