diff options
author | 2015-04-12 22:53:48 +0200 | |
---|---|---|
committer | 2015-04-14 19:58:17 +0200 | |
commit | 278cf84e5503d1829e837e21dc8c238bc8cab577 (patch) | |
tree | 5d1f529f01fdfe3615879d3482bc9cf8294ec5d7 /src/emu/bus/saturn/bram.c | |
parent | 75e8861950d520e83740b7b5747735f0286df145 (diff) |
Replace dynamic_array with std::vector [O. Galibert]
Diffstat (limited to 'src/emu/bus/saturn/bram.c')
-rw-r--r-- | src/emu/bus/saturn/bram.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/bus/saturn/bram.c b/src/emu/bus/saturn/bram.c index 79ebd34b482..92357c44e0b 100644 --- a/src/emu/bus/saturn/bram.c +++ b/src/emu/bus/saturn/bram.c @@ -67,7 +67,7 @@ void saturn_bram_device::nvram_default() { static const UINT8 init[16] = { 'B', 'a', 'c', 'k', 'U', 'p', 'R', 'a', 'm', ' ', 'F', 'o', 'r', 'm', 'a', 't' }; - memset(m_ext_bram, 0, m_ext_bram.bytes()); + memset(&m_ext_bram[0], 0, m_ext_bram.size()); for (int i = 0; i < 32; i++) { @@ -85,7 +85,7 @@ void saturn_bram_device::nvram_default() READ32_MEMBER(saturn_bram_device::read_ext_bram) { - if (offset < m_ext_bram.bytes()/2) + if (offset < m_ext_bram.size()/2) return (m_ext_bram[offset * 2] << 16) | m_ext_bram[offset * 2 + 1]; else { @@ -96,7 +96,7 @@ READ32_MEMBER(saturn_bram_device::read_ext_bram) WRITE32_MEMBER(saturn_bram_device::write_ext_bram) { - if (offset < m_ext_bram.bytes()/2) + if (offset < m_ext_bram.size()/2) { if (ACCESSING_BITS_16_23) m_ext_bram[offset * 2 + 0] = (data & 0x00ff0000) >> 16; |