diff --git a/src/emu/machine/serflash.c b/src/emu/machine/serflash.c index 836195dd4a7..c1346b1f9bf 100644 --- a/src/emu/machine/serflash.c +++ b/src/emu/machine/serflash.c @@ -72,7 +72,7 @@ void serflash_device::nvram_default() void serflash_device::nvram_read(emu_file &file) { if (m_length % FLASH_PAGE_SIZE) return; // region size must be multiple of flash page size - int size = m_length /= FLASH_PAGE_SIZE; + int size = m_length / FLASH_PAGE_SIZE; if (file) @@ -98,7 +98,7 @@ void serflash_device::nvram_read(emu_file &file) void serflash_device::nvram_write(emu_file &file) { if (m_length % FLASH_PAGE_SIZE) return; // region size must be multiple of flash page size - int size = m_length /= FLASH_PAGE_SIZE; + int size = m_length / FLASH_PAGE_SIZE; UINT32 page = 0; while (page < size)