Permalink
Browse files

Fix warnings.

  • Loading branch information...
1 parent a882177 commit ec58657b10fd58e7634c80c72fff59d86b0318c6 @Themaister committed Jan 2, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 cheats.c
  2. +2 −2 hash.c
View
@@ -161,7 +161,7 @@ static void cheat_manager_load_config(cheat_manager_t *handle, const char *path,
if (!conf)
return;
- char *str;
+ char *str = NULL;
if (!config_get_string(conf, sha256, &str))
{
config_file_free(conf);
View
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);
len = p->len << 3;
- store32be(p->in.u32 + 14, len >> 32);
- store32be(p->in.u32 + 15, len);
+ store32be(p->in.u32 + 14, (uint32_t)(len >> 32));
+ store32be(p->in.u32 + 15, (uint32_t)len);
sha256_block(p);
}

0 comments on commit ec58657

Please sign in to comment.