summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2017-03-29 12:12:51 +0100
committer smf- <smf-@users.noreply.github.com>2017-03-29 12:12:51 +0100
commit0a7765b310b72d4c1c90ec2813edeaef82a42c5c (patch)
tree6a953926e44bf6b6ee1aaa2698d05e7cd296de08
parente8bbf9c239d94a4f3acd1410df160460ffb6ef34 (diff)
When built with MSVC, clear() resets m_buffer size to 0 and m_buffer[0] throws an exception (nw)
-rw-r--r--src/devices/machine/7200fifo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/machine/7200fifo.cpp b/src/devices/machine/7200fifo.cpp
index b15f7f551c6..ff2c9205f91 100644
--- a/src/devices/machine/7200fifo.cpp
+++ b/src/devices/machine/7200fifo.cpp
@@ -59,7 +59,7 @@ void fifo7200_device::device_start()
void fifo7200_device::device_reset()
{
// master reset
- m_buffer.clear();
+ std::fill(m_buffer.begin(), m_buffer.end(), 0);
m_read_ptr = 0;
m_write_ptr = 0;
' href='#n125'>125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203