fix typo (nw)

This commit is contained in:
David Haywood 2013-09-08 18:26:48 +00:00
parent 158a13f206
commit aaf3b4cf3b

View File

@ -72,7 +72,7 @@ void serflash_device::nvram_default()
void serflash_device::nvram_read(emu_file &file) void serflash_device::nvram_read(emu_file &file)
{ {
if (m_length % FLASH_PAGE_SIZE) return; // region size must be multiple of flash page size 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) if (file)
@ -98,7 +98,7 @@ void serflash_device::nvram_read(emu_file &file)
void serflash_device::nvram_write(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 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; UINT32 page = 0;
while (page < size) while (page < size)