Commit 8ac7da79 by Ben Straub

Avoid casting warning

parent 0d8265c8
...@@ -218,7 +218,7 @@ int git_diff_merge(git_diff *onto, const git_diff *from) ...@@ -218,7 +218,7 @@ int git_diff_merge(git_diff *onto, const git_diff *from)
int git_diff_find_similar__hashsig_for_file( int git_diff_find_similar__hashsig_for_file(
void **out, const git_diff_file *f, const char *path, void *p) void **out, const git_diff_file *f, const char *path, void *p)
{ {
git_hashsig_option_t opt = (git_hashsig_option_t)p; git_hashsig_option_t opt = (git_hashsig_option_t)(long long)p;
int error = 0; int error = 0;
GIT_UNUSED(f); GIT_UNUSED(f);
...@@ -235,7 +235,7 @@ int git_diff_find_similar__hashsig_for_file( ...@@ -235,7 +235,7 @@ int git_diff_find_similar__hashsig_for_file(
int git_diff_find_similar__hashsig_for_buf( int git_diff_find_similar__hashsig_for_buf(
void **out, const git_diff_file *f, const char *buf, size_t len, void *p) void **out, const git_diff_file *f, const char *buf, size_t len, void *p)
{ {
git_hashsig_option_t opt = (git_hashsig_option_t)p; git_hashsig_option_t opt = (git_hashsig_option_t)(long long)p;
int error = 0; int error = 0;
GIT_UNUSED(f); GIT_UNUSED(f);
......
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