mirror of
https://github.com/libretro/RetroArch
synced 2025-04-23 11:43:20 +00:00
Fix warnings.
This commit is contained in:
parent
a882177f33
commit
ec58657b10
2
cheats.c
2
cheats.c
@ -161,7 +161,7 @@ static void cheat_manager_load_config(cheat_manager_t *handle, const char *path,
|
|||||||
if (!conf)
|
if (!conf)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
char *str;
|
char *str = NULL;
|
||||||
if (!config_get_string(conf, sha256, &str))
|
if (!config_get_string(conf, sha256, &str))
|
||||||
{
|
{
|
||||||
config_file_free(conf);
|
config_file_free(conf);
|
||||||
|
4
hash.c
4
hash.c
@ -163,8 +163,8 @@ static void sha256_final(struct sha256_ctx *p)
|
|||||||
memset(p->in.u8 + p->inlen, 0, 56 - p->inlen);
|
memset(p->in.u8 + p->inlen, 0, 56 - p->inlen);
|
||||||
|
|
||||||
len = p->len << 3;
|
len = p->len << 3;
|
||||||
store32be(p->in.u32 + 14, len >> 32);
|
store32be(p->in.u32 + 14, (uint32_t)(len >> 32));
|
||||||
store32be(p->in.u32 + 15, len);
|
store32be(p->in.u32 + 15, (uint32_t)len);
|
||||||
sha256_block(p);
|
sha256_block(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user