summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/pdp1/pdp1.cpp
diff options
context:
space:
mode:
author ImJezze <jezze@gmx.net>2015-12-13 11:23:55 +0100
committer ImJezze <jezze@gmx.net>2015-12-13 11:23:55 +0100
commit4e580a77b9da9b78aba1fec8e44b1de5a4a14aaf (patch)
treedf0e1d28daa79b9151088498a933cd1fc37c9c07 /src/devices/cpu/pdp1/pdp1.cpp
parent1cda42b22e591965ee69561fcf52272bd991b3b2 (diff)
parent14d5966a379e9783ba724750a5f84a72af62cadc (diff)
Merge pull request #9 from mamedev/master
Sync to base master
Diffstat (limited to 'src/devices/cpu/pdp1/pdp1.cpp')
-rw-r--r--src/devices/cpu/pdp1/pdp1.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/cpu/pdp1/pdp1.cpp b/src/devices/cpu/pdp1/pdp1.cpp
index bb7beee4128..b36e7242967 100644
--- a/src/devices/cpu/pdp1/pdp1.cpp
+++ b/src/devices/cpu/pdp1/pdp1.cpp
@@ -392,7 +392,7 @@ void pdp1_device::device_config_complete()
{
// inherit a copy of the static data
const pdp1_reset_param_t *intf = reinterpret_cast<const pdp1_reset_param_t *>(static_config());
- if (intf != NULL)
+ if (intf != nullptr)
*static_cast<pdp1_reset_param_t *>(this) = *intf;
// or initialize to defaults if none provided
@@ -404,9 +404,9 @@ void pdp1_device::device_config_complete()
hw_mul_div = 0;
type_20_sbs = 0;
- for (int i = 0; i < 64; i++)
+ for (auto & elem : extern_iot)
{
- memset(&extern_iot[i], 0, sizeof(extern_iot[i]));
+ memset(&elem, 0, sizeof(elem));
}
}
}