Commit 38fd8121 by Russell Belfer

Fix win64 warnings

parent 9ea29c8f
...@@ -377,7 +377,7 @@ int git_branch_remote_name(char *buffer, size_t buffer_len, git_repository *repo ...@@ -377,7 +377,7 @@ int git_branch_remote_name(char *buffer, size_t buffer_len, git_repository *repo
if (buffer) if (buffer)
git_buf_copy_cstr(buffer, buffer_len, &buf); 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); git_buf_free(&buf);
return ret; return ret;
......
...@@ -160,7 +160,7 @@ void test_refdb_inmemory__foreach(void) ...@@ -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_create(&write3, repo, GIT_REFS_HEADS_DIR "test3", &oid3, 0));
cl_git_pass(git_reference_foreach(repo, GIT_REF_LISTALL, foreach_test, &i)); 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(write1);
git_reference_free(write2); git_reference_free(write2);
...@@ -207,7 +207,7 @@ void test_refdb_inmemory__delete(void) ...@@ -207,7 +207,7 @@ void test_refdb_inmemory__delete(void)
git_reference_free(write3); git_reference_free(write3);
cl_git_pass(git_reference_foreach(repo, GIT_REF_LISTALL, delete_test, &i)); 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); git_reference_free(write2);
} }
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