Skip to content

Commit

Permalink
Use a portable cast
Browse files Browse the repository at this point in the history
  • Loading branch information
ben committed Feb 24, 2014
1 parent b1f2c2e commit c8893d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/diff_tform.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ int git_diff_merge(git_diff *onto, const git_diff *from)
int git_diff_find_similar__hashsig_for_file(
void **out, const git_diff_file *f, const char *path, void *p)
{
git_hashsig_option_t opt = (git_hashsig_option_t)(long long)p;
git_hashsig_option_t opt = (git_hashsig_option_t)(intptr_t)p;
int error = 0;

GIT_UNUSED(f);
Expand All @@ -235,7 +235,7 @@ int git_diff_find_similar__hashsig_for_file(
int git_diff_find_similar__hashsig_for_buf(
void **out, const git_diff_file *f, const char *buf, size_t len, void *p)
{
git_hashsig_option_t opt = (git_hashsig_option_t)(long long)p;
git_hashsig_option_t opt = (git_hashsig_option_t)(intptr_t)p;
int error = 0;

GIT_UNUSED(f);
Expand Down

0 comments on commit c8893d1

Please sign in to comment.