Commit 75050223976bce6fd87d5fb38fb3b70adf760c3c

nulltoken 2012-09-14T11:47:43

Fix MSVC compilation warnings

diff --git a/src/repository.c b/src/repository.c
index 8702252..20a623a 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -1422,7 +1422,7 @@ int git_repository_hashfile(
 
 	len = git_futils_filesize(fd);
 	if (len < 0) {
-		error = len;
+		error = (int)len;
 		goto cleanup;
 	}
 
@@ -1432,7 +1432,7 @@ int git_repository_hashfile(
 		goto cleanup;
 	}
 
-	error = git_odb__hashfd_filtered(out, fd, len, type, &filters);
+	error = git_odb__hashfd_filtered(out, fd, (size_t)len, type, &filters);
 
 cleanup:
 	p_close(fd);