diff options
author | Vicent Martà <tanoku@gmail.com> | 2011-07-09 06:45:30 -0700 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2011-07-09 06:45:30 -0700 |
commit | d37ba6720de36b5121f4e978f65ab5703d12523f (patch) | |
tree | 5411ed813ad8cea07e628f0dc1fb1fd771cc3f77 | |
parent | c52736fa5226141754918cabf55c22be9c2aee1b (diff) | |
parent | b21fb8496fc62757c3662e25f08c0ecad175f9d2 (diff) | |
download | libgit2-d37ba6720de36b5121f4e978f65ab5703d12523f.tar.gz |
Merge pull request #312 from nulltoken/patch-2
Fix MSVC compilation warning
-rw-r--r-- | src/odb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -149,7 +149,7 @@ int git_odb_hashfile(git_oid *out, const char *path, git_otype type) return git__throw(GIT_EOSERR, "'%s' appears to be corrupted", path); } - hdr_len = format_object_header(hdr, sizeof(hdr), size, type); + hdr_len = format_object_header(hdr, sizeof(hdr), (size_t)size, type); if (hdr_len < 0) return git__throw(GIT_ERROR, "Failed to format blob header. Length is out of bounds"); |