From e3d3b1407f12e7396d8a6f89864f0a539ddafbf3 Mon Sep 17 00:00:00 2001 From: riccardom Date: Sat, 18 Apr 2009 13:44:31 +0000 Subject: [PATCH] Make a couple of functions static and shut up a signed vs unsigned warning in cheatSystem.cpp. --- desmume/src/cheatSystem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desmume/src/cheatSystem.cpp b/desmume/src/cheatSystem.cpp index 2ed65cea2..a1d3b4e12 100644 --- a/desmume/src/cheatSystem.cpp +++ b/desmume/src/cheatSystem.cpp @@ -165,7 +165,7 @@ void cheatsDisassemble_AR(u32 hi, u32 lo) } #endif -void cheats_ARparser(CHEATS_LIST cheat) +static void cheats_ARparser(CHEATS_LIST cheat) { for (int i=0; i < cheat.num; i++) { @@ -175,7 +175,7 @@ void cheats_ARparser(CHEATS_LIST cheat) } } -BOOL cheatsXXcodePreparser(CHEATS_LIST *cheat, char *code) +static BOOL cheatsXXcodePreparser(CHEATS_LIST *cheat, char *code) { u16 count = 0; u16 t = 0; @@ -183,7 +183,7 @@ BOOL cheatsXXcodePreparser(CHEATS_LIST *cheat, char *code) memset(tmp_buf, 0, sizeof(tmp_buf)); // remove wrong chars - for (int i=0; i < strlen(code); i++) + for (unsigned int i=0; i < strlen(code); i++) { switch (code[i]) {