diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-20 18:54:16 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-25 22:31:01 +0000 |
commit | c3866fa87cf6df0d0491ea16303515bebdf56de6 (patch) | |
tree | d7c1737ae60c7d00b16af0299991f61dc90010ec | |
parent | 826d9a4de88b4b31b21b7fd7fde934b318b24341 (diff) | |
download | libgit2-c3866fa87cf6df0d0491ea16303515bebdf56de6.tar.gz |
diff: explicitly cast in flush_hunk
Quiet down a warning from MSVC about how we're potentially losing data.
-rw-r--r-- | src/diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c index 5abb4d183..d2e129d1b 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; } |