Commit d37ba672 by Vicent Martí

Merge pull request #312 from nulltoken/patch-2

Fix MSVC compilation warning
parents c52736fa b21fb849
...@@ -149,7 +149,7 @@ int git_odb_hashfile(git_oid *out, const char *path, git_otype type) ...@@ -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); 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) if (hdr_len < 0)
return git__throw(GIT_ERROR, "Failed to format blob header. Length is out of bounds"); return git__throw(GIT_ERROR, "Failed to format blob header. Length is out of bounds");
......
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