diff --git a/src/devices/bus/cpc/cpcexp.cpp b/src/devices/bus/cpc/cpcexp.cpp index ab92c31a4df..3f9f04e89ea 100644 --- a/src/devices/bus/cpc/cpcexp.cpp +++ b/src/devices/bus/cpc/cpcexp.cpp @@ -83,7 +83,7 @@ void cpc_expansion_slot_device::device_start() void cpc_expansion_slot_device::device_config_complete() { // for passthrough connectors, use the parent slot's CPU tag - if (strcmp(m_cpu.finder_tag(), finder_base::DUMMY_TAG) == 0 && dynamic_cast(owner()) != nullptr) + if ((m_cpu.finder_tag() == finder_base::DUMMY_TAG) && (dynamic_cast(owner()) != nullptr)) { auto parent = dynamic_cast(owner()->owner()); if (parent != nullptr)