diff options
author | Russell Belfer <rb@github.com> | 2013-02-11 11:44:00 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-02-11 11:44:00 -0800 |
commit | 390a3c81410a219b13aa6f333949c803524c8bd2 (patch) | |
tree | b6487640acf5adb87f5a0f8ee25dedd44df63ffb /src/diff_output.c | |
parent | e026cfee003e103d79e56983d68a206ae907eada (diff) | |
parent | 3ad052218cd03fe58b254f878825e3f0fd4b3054 (diff) | |
download | libgit2-390a3c81410a219b13aa6f333949c803524c8bd2.tar.gz |
Merge pull request #1190 from nulltoken/topic/reset-paths
reset: Allow the selective reset of pathspecs
Diffstat (limited to 'src/diff_output.c')
-rw-r--r-- | src/diff_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/diff_output.c b/src/diff_output.c index 4f1064b7f..c2c259161 100644 --- a/src/diff_output.c +++ b/src/diff_output.c @@ -1603,8 +1603,8 @@ int git_diff_patch_get_line_in_hunk( if (line_origin) *line_origin = line->origin; if (content) *content = line->ptr; if (content_len) *content_len = line->len; - if (old_lineno) *old_lineno = line->oldno; - if (new_lineno) *new_lineno = line->newno; + if (old_lineno) *old_lineno = (int)line->oldno; + if (new_lineno) *new_lineno = (int)line->newno; return 0; |