summaryrefslogtreecommitdiff
path: root/src/iterator.c
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-03-14 17:41:04 -0700
committerVicent Martí <tanoku@gmail.com>2012-03-14 17:41:04 -0700
commite24fbba94862fdb602846771f2ae41ef15834d10 (patch)
tree4b11910d7d315a6db667cc4af4c6749630612ed3 /src/iterator.c
parentdda708e78f3c3f43d814d46c29ab9f2b9d47ed5c (diff)
parentdeafee7bd7a9e2efcdff90627b6094d8c1519319 (diff)
downloadlibgit2-e24fbba94862fdb602846771f2ae41ef15834d10.tar.gz
Merge pull request #595 from arrbee/new-errors-odb
Update odb code to new error handling
Diffstat (limited to 'src/iterator.c')
-rw-r--r--src/iterator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iterator.c b/src/iterator.c
index 0ce89df9e..c10b9ffc2 100644
--- a/src/iterator.c
+++ b/src/iterator.c
@@ -309,7 +309,7 @@ static int workdir_iterator__expand_dir(workdir_iterator *wi)
/* only push new ignores if this is not top level directory */
if (wi->stack->next != NULL) {
- int slash_pos = git_buf_rfind_next(&wi->path, '/');
+ ssize_t slash_pos = git_buf_rfind_next(&wi->path, '/');
(void)git_ignore__push_dir(&wi->ignores, &wi->path.ptr[slash_pos + 1]);
}