diff options
| author | Russell Belfer <rb@github.com> | 2012-11-21 15:39:03 -0800 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2012-11-27 13:18:29 -0800 |
| commit | a8122b5d4a179456b1a1d9af8d09313e22bfab8d (patch) | |
| tree | 0c761b335489f93a6db1aecdde506a037c64dd92 /tests-clar/index/tests.c | |
| parent | 4604a65460b42ee4b3fead03dbb92197d583cc65 (diff) | |
| download | libgit2-a8122b5d4a179456b1a1d9af8d09313e22bfab8d.tar.gz | |
Fix warnings on Win64 build
Diffstat (limited to 'tests-clar/index/tests.c')
| -rw-r--r-- | tests-clar/index/tests.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests-clar/index/tests.c b/tests-clar/index/tests.c index 4d613d693..30a5a31fa 100644 --- a/tests-clar/index/tests.c +++ b/tests-clar/index/tests.c @@ -1,8 +1,8 @@ #include "clar_libgit2.h" #include "index.h" -static const int index_entry_count = 109; -static const int index_entry_count_2 = 1437; +static const size_t index_entry_count = 109; +static const size_t index_entry_count_2 = 1437; #define TEST_INDEX_PATH cl_fixture("testrepo.git/index") #define TEST_INDEX2_PATH cl_fixture("gitgit.index") #define TEST_INDEXBIG_PATH cl_fixture("big.index") @@ -99,7 +99,7 @@ void test_index_tests__default_test_index(void) cl_git_pass(git_index_open(&index, TEST_INDEX_PATH)); cl_assert(index->on_disk); - cl_assert(git_index_entrycount(index) == (unsigned int)index_entry_count); + cl_assert(git_index_entrycount(index) == index_entry_count); cl_assert(index->entries.sorted); entries = (git_index_entry **)index->entries.contents; @@ -122,7 +122,7 @@ void test_index_tests__gitgit_index(void) cl_git_pass(git_index_open(&index, TEST_INDEX2_PATH)); cl_assert(index->on_disk); - cl_assert(git_index_entrycount(index) == (unsigned int)index_entry_count_2); + cl_assert(git_index_entrycount(index) == index_entry_count_2); cl_assert(index->entries.sorted); cl_assert(index->tree != NULL); |
