diff options
author | twinaphex | 2015-11-14 04:56:36 +0100 |
---|---|---|
committer | twinaphex | 2015-11-14 04:56:36 +0100 |
commit | ff3818282dab0d337bfe5ae1fcc39822250ec11f (patch) | |
tree | a1baf98f56cc26c34cee2345d828c31560ede1e8 /libretro | |
parent | 3200822d8d3af1a0e92109f844d01f5717db280d (diff) | |
download | snes9x2002-ff3818282dab0d337bfe5ae1fcc39822250ec11f.tar.gz snes9x2002-ff3818282dab0d337bfe5ae1fcc39822250ec11f.tar.bz2 snes9x2002-ff3818282dab0d337bfe5ae1fcc39822250ec11f.zip |
Fix warning
Diffstat (limited to 'libretro')
-rw-r--r-- | libretro/libretro.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libretro/libretro.c b/libretro/libretro.c index b3729cf..6f5ba00 100644 --- a/libretro/libretro.c +++ b/libretro/libretro.c @@ -471,8 +471,10 @@ void retro_cheat_set(unsigned index, bool enable, const char* in_code) { // clean input char clean_code[strlen(in_code)]; - int i,j =0; - for (i = 0; i<strlen(in_code); i++) + int j =0; + unsigned i; + + for (i = 0; i < strlen(in_code); i++) { switch (in_code[i]) { @@ -501,7 +503,7 @@ void retro_cheat_set(unsigned index, bool enable, const char* in_code) S9xAddCheat(true, true, address, byte); else if ( S9xGameGenieToRaw(clean_code, &address, &byte) == NULL) S9xAddCheat(true, true, address, byte); - // else, silently ignore + /* else, silently ignore */ } bool retro_load_game(const struct retro_game_info *game) |