diff options
author | Philip Kelley <phkelley@hotmail.com> | 2013-01-27 23:17:07 +0400 |
---|---|---|
committer | Philip Kelley <phkelley@hotmail.com> | 2013-01-27 23:17:07 +0400 |
commit | 11d9f6b30438a141def883b0115f7f764c03e990 (patch) | |
tree | abe54e8085c4e3a1c7a822ee256f81e0d58e6b42 /tests-clar/index/filemodes.c | |
parent | aa3bf89df21c44f22fe70b4aac9109646fd06b48 (diff) |
Vector improvements and their fallout
Diffstat (limited to 'tests-clar/index/filemodes.c')
-rw-r--r-- | tests-clar/index/filemodes.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests-clar/index/filemodes.c b/tests-clar/index/filemodes.c index 1acd2e341..1bb44173c 100644 --- a/tests-clar/index/filemodes.c +++ b/tests-clar/index/filemodes.c @@ -53,13 +53,12 @@ static void replace_file_with_mode( static void add_and_check_mode( git_index *index, const char *filename, unsigned int expect_mode) { - int pos; + size_t pos; const git_index_entry *entry; cl_git_pass(git_index_add_bypath(index, filename)); - pos = git_index_find(index, filename); - cl_assert(pos >= 0); + cl_assert(!git_index_find(&pos, index, filename)); entry = git_index_get_byindex(index, pos); cl_assert(entry->mode == expect_mode); |