From b21fb8496fc62757c3662e25f08c0ecad175f9d2 Mon Sep 17 00:00:00 2001 From: nulltoken Date: Sat, 9 Jul 2011 06:36:18 -0700 Subject: [PATCH] Fix MSVC compilation warning --- src/odb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/odb.c b/src/odb.c index 52546e7c7..a3045f716 100644 --- a/src/odb.c +++ b/src/odb.c @@ -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");