Commit 498d0801 by Edward Thomson

tests: use a `size_t`

parent 60e15ecd
...@@ -18,18 +18,16 @@ static void assert_at_end(git_iterator *i, bool verbose) ...@@ -18,18 +18,16 @@ static void assert_at_end(git_iterator *i, bool verbose)
void expect_iterator_items( void expect_iterator_items(
git_iterator *i, git_iterator *i,
int expected_flat, size_t expected_flat,
const char **expected_flat_paths, const char **expected_flat_paths,
int expected_total, size_t expected_total,
const char **expected_total_paths) const char **expected_total_paths)
{ {
const git_index_entry *entry; const git_index_entry *entry;
int count, error; size_t count;
int no_trees = !(git_iterator_flags(i) & GIT_ITERATOR_INCLUDE_TREES); int no_trees = !(git_iterator_flags(i) & GIT_ITERATOR_INCLUDE_TREES);
bool v = false; bool v = false;
int error;
if (expected_flat < 0) { v = true; expected_flat = -expected_flat; }
if (expected_total < 0) { v = true; expected_total = -expected_total; }
if (v) fprintf(stderr, "== %s ==\n", no_trees ? "notrees" : "trees"); if (v) fprintf(stderr, "== %s ==\n", no_trees ? "notrees" : "trees");
......
extern void expect_iterator_items( extern void expect_iterator_items(
git_iterator *i, git_iterator *i,
int expected_flat, size_t expected_flat,
const char **expected_flat_paths, const char **expected_flat_paths,
int expected_total, size_t expected_total,
const char **expected_total_paths); const char **expected_total_paths);
extern void expect_advance_over( extern void expect_advance_over(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment