summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcmd.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-09-08 16:58:02 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-09-08 16:58:02 +0000
commit50b4a43bfd331d0448543c0827305eefb5ea0f89 (patch)
treec2379316a8672451b1caf118d0838d04b6d8ddf9 /src/emu/debug/debugcmd.c
parentb09565e76f8e6b6e59324ba71ee9f04c4de6fac6 (diff)
Fix CPP_COMPILE (except for internal compiler error on snes.c).
Diffstat (limited to 'src/emu/debug/debugcmd.c')
-rw-r--r--src/emu/debug/debugcmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/debug/debugcmd.c b/src/emu/debug/debugcmd.c
index bc2a261a4df..937f714dcdb 100644
--- a/src/emu/debug/debugcmd.c
+++ b/src/emu/debug/debugcmd.c
@@ -1853,7 +1853,7 @@ static void execute_cheatinit(running_machine *machine, int ref, int params, con
/* initialize new cheat system */
if (cheat.cheatmap != NULL)
free(cheat.cheatmap);
- cheat.cheatmap = malloc(real_length * sizeof(cheat_map));
+ cheat.cheatmap = (cheat_map *)malloc(real_length * sizeof(cheat_map));
if (cheat.cheatmap == NULL)
{
debug_console_printf(machine, "Unable of allocate the necessary memory\n");
@@ -1878,7 +1878,7 @@ static void execute_cheatinit(running_machine *machine, int ref, int params, con
if (!debug_command_parameter_cpu_space(machine, &cheat.cpu, ADDRESS_SPACE_PROGRAM, &space))
return;
- cheat.cheatmap = realloc(cheat.cheatmap, (cheat.length + real_length) * sizeof(cheat_map));
+ cheat.cheatmap = (cheat_map *)realloc(cheat.cheatmap, (cheat.length + real_length) * sizeof(cheat_map));
if (cheat.cheatmap == NULL)
{
cheat.cheatmap = cheatmap_bak;