From 457fbed8f5d9e02a09a04db25a7700365358095b Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Tue, 27 Mar 2018 11:31:00 +1100 Subject: [PATCH] fix warning from 32-bit build (nw) --- src/mame/machine/cammu.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mame/machine/cammu.cpp b/src/mame/machine/cammu.cpp index 99f783f4128..17ac438931b 100644 --- a/src/mame/machine/cammu.cpp +++ b/src/mame/machine/cammu.cpp @@ -32,6 +32,8 @@ #include "emu.h" #include "cammu.h" +#include + #define LOG_GENERAL (1U << 0) #define LOG_ACCESS (1U << 1) #define LOG_DTU (1U << 2) @@ -219,8 +221,7 @@ void cammu_device::set_spaces(std::vector spaces) { assert_always(spaces.size() == 8, "exactly 8 address space pointers are required"); - for (int i = 0; i < spaces.size(); i++) - m_space[i] = spaces[i]; + std::copy(spaces.begin(), spaces.end(), std::begin(m_space)); } cammu_device::translated_t cammu_device::translate_address(const u32 ssw, const u32 virtual_address, const access_size size, const access_type mode)