diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2015-12-05 10:00:21 +0100 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2015-12-05 10:00:21 +0100 |
commit | be704c00abe1eaaa442db81db04c8b71595d5c41 (patch) | |
tree | 93fa0c29d7a997004d0565e49be42dd1c956dffc /src/devices/bus/gba/rom.cpp | |
parent | a8684b4b03e77e25153d38bb245554253db10fce (diff) |
use c++ cast instead of c casts (nw)
Diffstat (limited to 'src/devices/bus/gba/rom.cpp')
-rw-r--r-- | src/devices/bus/gba/rom.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bus/gba/rom.cpp b/src/devices/bus/gba/rom.cpp index 8e857dfe004..2ce7a81d004 100644 --- a/src/devices/bus/gba/rom.cpp +++ b/src/devices/bus/gba/rom.cpp @@ -96,14 +96,14 @@ void gba_rom_eeprom_device::device_start() { // for the moment we use a custom eeprom implementation, so we alloc/save it as nvram nvram_alloc(0x200); - m_eeprom = std::make_unique<gba_eeprom_device>(machine(), (UINT8*)get_nvram_base(), get_nvram_size(), 6); + m_eeprom = std::make_unique<gba_eeprom_device>(machine(), reinterpret_cast<UINT8*>(get_nvram_base()), get_nvram_size(), 6); } void gba_rom_eeprom64_device::device_start() { // for the moment we use a custom eeprom implementation, so we alloc/save it as nvram nvram_alloc(0x2000); - m_eeprom = std::make_unique<gba_eeprom_device>(machine(), (UINT8*)get_nvram_base(), get_nvram_size(), 14); + m_eeprom = std::make_unique<gba_eeprom_device>(machine(), reinterpret_cast<UINT8*>(get_nvram_base()), get_nvram_size(), 14); } |