Fix win64 warnings

This commit is contained in:
Russell Belfer 2013-04-18 14:48:20 -07:00
parent 9ea29c8f1d
commit 38fd8121a2
2 changed files with 3 additions and 3 deletions

View File

@ -377,7 +377,7 @@ int git_branch_remote_name(char *buffer, size_t buffer_len, git_repository *repo
if (buffer)
git_buf_copy_cstr(buffer, buffer_len, &buf);
ret = git_buf_len(&buf) + 1;
ret = (int)git_buf_len(&buf) + 1;
git_buf_free(&buf);
return ret;

View File

@ -160,7 +160,7 @@ void test_refdb_inmemory__foreach(void)
cl_git_pass(git_reference_create(&write3, repo, GIT_REFS_HEADS_DIR "test3", &oid3, 0));
cl_git_pass(git_reference_foreach(repo, GIT_REF_LISTALL, foreach_test, &i));
cl_assert_equal_i(i, 3);
cl_assert_equal_i(3, (int)i);
git_reference_free(write1);
git_reference_free(write2);
@ -207,7 +207,7 @@ void test_refdb_inmemory__delete(void)
git_reference_free(write3);
cl_git_pass(git_reference_foreach(repo, GIT_REF_LISTALL, delete_test, &i));
cl_assert_equal_i(i, 1);
cl_assert_equal_i(1, (int)i);
git_reference_free(write2);
}