mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Merge pull request #2376 from leiradel/master
fixed warnings in cxx build
This commit is contained in:
commit
24533f635f
@ -1702,7 +1702,7 @@ static unsigned cheevos_find_game_id_nes(const struct retro_game_info *info, ret
|
||||
num_read = retro_fread(file, (void*)&header, sizeof(header));
|
||||
retro_fclose(file);
|
||||
|
||||
if (num_read < sizeof(header))
|
||||
if (num_read < (ssize_t)sizeof(header))
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -1741,7 +1741,7 @@ static unsigned cheevos_find_game_id_nes(const struct retro_game_info *info, ret
|
||||
if (num_read <= 0)
|
||||
break;
|
||||
|
||||
if (num_read >= rom_size)
|
||||
if (num_read >= (ssize_t)rom_size)
|
||||
{
|
||||
MD5_Update(&ctx, (void*)buffer, rom_size);
|
||||
break;
|
||||
@ -1805,7 +1805,7 @@ int cheevos_load(const struct retro_game_info *info)
|
||||
|
||||
size_t memory;
|
||||
struct retro_system_info sysinfo;
|
||||
int i;
|
||||
unsigned i;
|
||||
const char *json;
|
||||
retro_time_t timeout = 5000000;
|
||||
unsigned game_id = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user