summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/upd7725
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-04 10:29:21 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-04 10:29:21 +0100
commit1b0ec08af5cd3b3268b5889ba4e30409431434e2 (patch)
tree42c510afaaeb15e1f97eff044a4d295586c30aaa /src/devices/cpu/upd7725
parent5a2f80dcde2e76356bf568f1e2d71b054a7db45b (diff)
clang-modernize part 6
Diffstat (limited to 'src/devices/cpu/upd7725')
-rw-r--r--src/devices/cpu/upd7725/upd7725.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/upd7725/upd7725.cpp b/src/devices/cpu/upd7725/upd7725.cpp
index 3d26780ae2e..5820d6fe4e0 100644
--- a/src/devices/cpu/upd7725/upd7725.cpp
+++ b/src/devices/cpu/upd7725/upd7725.cpp
@@ -139,9 +139,9 @@ void necdsp_device::device_start()
void necdsp_device::device_reset()
{
- for (unsigned i = 0; i < 2048; i++)
+ for (auto & elem : dataRAM)
{
- dataRAM[i] = 0x0000;
+ elem = 0x0000;
}
regs.pc = 0x0000;