Commit fc3a94ba5a08058e7fa218c7641ef9cfc8bfb19e

Edward Thomson 2019-05-20T07:13:42

repository: use size_t for length

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/repository.c b/src/repository.c
index d3c7bab..6d7954a 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -878,7 +878,8 @@ int git_repository_open_from_worktree(git_repository **repo_out, git_worktree *w
 {
 	git_buf path = GIT_BUF_INIT;
 	git_repository *repo = NULL;
-	int len, err;
+	size_t len;
+	int err;
 
 	assert(repo_out && wt);