summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcmd.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2014-03-31 10:06:05 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2014-03-31 10:06:05 +0000
commit2cc9ca4c5e2c5c65764ff43beb1f21f93ca3aac8 (patch)
tree2d13f899e1da5fb939bbeccff1d411abccaa689c /src/emu/debug/debugcmd.c
parentc8b93e57d2392b50eafdf120198997b870e0deb4 (diff)
VS2013 x64 is little bit more anal about signed/unsigned comparison (nw)
Diffstat (limited to 'src/emu/debug/debugcmd.c')
-rw-r--r--src/emu/debug/debugcmd.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/emu/debug/debugcmd.c b/src/emu/debug/debugcmd.c
index c4a7b27c06d..b791df71ed5 100644
--- a/src/emu/debug/debugcmd.c
+++ b/src/emu/debug/debugcmd.c
@@ -2083,7 +2083,7 @@ static void execute_cheatinit(running_machine &machine, int ref, int params, con
static void execute_cheatnext(running_machine &machine, int ref, int params, const char *param[])
{
address_space *space;
- UINT64 cheatindex;
+ int cheatindex;
UINT32 active_cheat = 0;
UINT8 condition;
UINT64 comp_value = 0;
@@ -2149,7 +2149,7 @@ static void execute_cheatnext(running_machine &machine, int ref, int params, con
cheat.undo++;
/* execute the search */
- for (cheatindex = 0; cheatindex < (UINT64)cheat.cheatmap.count(); cheatindex += 1)
+ for (cheatindex = 0; cheatindex < cheat.cheatmap.count(); cheatindex += 1)
if (cheat.cheatmap[cheatindex].state == 1)
{
UINT64 cheat_value = cheat_read_extended(&cheat, *space, cheat.cheatmap[cheatindex].offset);
@@ -2263,7 +2263,7 @@ static void execute_cheatlist(running_machine &machine, int ref, int params, con
address_space *space;
device_t *cpu;
UINT32 active_cheat = 0;
- UINT64 cheatindex;
+ int cheatindex;
UINT64 sizemask;
FILE *f = NULL;
@@ -2294,7 +2294,7 @@ static void execute_cheatlist(running_machine &machine, int ref, int params, con
}
/* write the cheat list */
- for (cheatindex = 0; cheatindex < (UINT64)cheat.cheatmap.count(); cheatindex += 1)
+ for (cheatindex = 0; cheatindex < cheat.cheatmap.count(); cheatindex += 1)
{
if (cheat.cheatmap[cheatindex].state == 1)
{
@@ -2325,12 +2325,12 @@ static void execute_cheatlist(running_machine &machine, int ref, int params, con
static void execute_cheatundo(running_machine &machine, int ref, int params, const char *param[])
{
- UINT64 cheatindex;
+ int cheatindex;
UINT32 undo_count = 0;
if (cheat.undo > 0)
{
- for (cheatindex = 0; cheatindex < (UINT64)cheat.cheatmap.count(); cheatindex += 1)
+ for (cheatindex = 0; cheatindex < cheat.cheatmap.count(); cheatindex += 1)
{
if (cheat.cheatmap[cheatindex].undo == cheat.undo)
{
@@ -2359,9 +2359,9 @@ static void execute_find(running_machine &machine, int ref, int params, const ch
UINT64 data_to_find[256];
UINT8 data_size[256];
int cur_data_size;
- int data_count = 0;
+ size_t data_count = 0;
int found = 0;
- int j;
+ size_t j;
/* validate parameters */
if (!debug_command_parameter_number(machine, param[0], &offset))