diff: explicitly cast in flush_hunk Quiet down a warning from MSVC about how we're potentially losing data.
diff --git a/src/diff.c b/src/diff.c
index 5abb4d1..d2e129d 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -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;
}