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/attr | |
parent | aa3bf89df21c44f22fe70b4aac9109646fd06b48 (diff) |
Vector improvements and their fallout
Diffstat (limited to 'tests-clar/attr')
-rw-r--r-- | tests-clar/attr/repo.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests-clar/attr/repo.c b/tests-clar/attr/repo.c index 926a0d8a2..ca3e71e7f 100644 --- a/tests-clar/attr/repo.c +++ b/tests-clar/attr/repo.c @@ -266,14 +266,13 @@ static void add_to_workdir(const char *filename, const char *content) static void assert_proper_normalization(git_index *index, const char *filename, const char *expected_sha) { - int index_pos; + size_t index_pos; const git_index_entry *entry; add_to_workdir(filename, CONTENT); cl_git_pass(git_index_add_bypath(index, filename)); - index_pos = git_index_find(index, filename); - cl_assert(index_pos >= 0); + cl_assert(!git_index_find(&index_pos, index, filename)); entry = git_index_get_byindex(index, index_pos); cl_assert_equal_i(0, git_oid_streq(&entry->oid, expected_sha)); |