Commit c3866fa8 by Edward Thomson

diff: explicitly cast in flush_hunk

Quiet down a warning from MSVC about how we're potentially losing data.
parent 826d9a4d
......@@ -386,7 +386,7 @@ static int flush_hunk(git_oid *result, git_hash_ctx *ctx)
for (i = 0; i < GIT_OID_RAWSZ; i++) {
carry += result->id[i] + hash.id[i];
result->id[i] = carry;
result->id[i] = (unsigned char)carry;
carry >>= 8;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment