diff options
author | 2015-11-09 11:21:58 +0100 | |
---|---|---|
committer | 2015-11-09 11:22:13 +0100 | |
commit | 33f410f0d90668258c34e8ce4fd92b84d1cbd177 (patch) | |
tree | 28a5d254834f85e1a3c69079e5754c0e40d2df00 /src/devices/machine/tc009xlvc.cpp | |
parent | 826b349ab0b8588f1db44e44390ba1f00e4ce569 (diff) |
Fix more PVS-Studio warnings, nw
Diffstat (limited to 'src/devices/machine/tc009xlvc.cpp')
-rw-r--r-- | src/devices/machine/tc009xlvc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/machine/tc009xlvc.cpp b/src/devices/machine/tc009xlvc.cpp index 5897d555d88..9d974976a1e 100644 --- a/src/devices/machine/tc009xlvc.cpp +++ b/src/devices/machine/tc009xlvc.cpp @@ -265,10 +265,10 @@ void tc0091lvc_device::device_start() throw device_missing_dependencies(); memset(m_palette_ram, 0, sizeof(m_palette_ram)); - memset(m_vregs, 0, sizeof(m_palette_ram)); - memset(m_bitmap_ram, 0, sizeof(m_palette_ram)); - memset(m_pcg_ram, 0, sizeof(m_pcg_ram)); - memset(m_sprram_buffer, 0, sizeof(m_sprram_buffer)); + memset(m_vregs, 0, sizeof(UINT8) * 0x100); + memset(m_bitmap_ram, 0, sizeof(UINT8) * 0x20000); + memset(m_pcg_ram, 0, sizeof(UINT8) * 0x10000); + memset(m_sprram_buffer, 0, sizeof(UINT8) * 0x400); // note, the way tiles are addressed suggests that 0x0000-0x3fff of this might be usable, // but we don't map it anywhere, so the first tiles are always blank at the moment. |