diff options
author | 2018-03-27 11:31:00 +1100 | |
---|---|---|
committer | 2018-03-27 11:31:00 +1100 | |
commit | 457fbed8f5d9e02a09a04db25a7700365358095b (patch) | |
tree | e92f0ac4298d0ff15339afc1cabf631e4a805875 | |
parent | dd392ba1092c02de036257b2c4a97f93fc71b91b (diff) |
fix warning from 32-bit build (nw)
-rw-r--r-- | src/mame/machine/cammu.cpp | 5 |
1 files 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 <algorithm> + #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<address_space *> 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) |