We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae681d3 commit f4ebb2dCopy full SHA for f4ebb2d
src/blame.c
@@ -41,7 +41,12 @@ static int hunk_cmp(const void *_a, const void *_b)
41
git_blame_hunk *a = (git_blame_hunk*)_a,
42
*b = (git_blame_hunk*)_b;
43
44
- return a->final_start_line_number - b->final_start_line_number;
+ if (a->final_start_line_number > b->final_start_line_number)
45
+ return 1;
46
+ else if (a->final_start_line_number < b->final_start_line_number)
47
+ return -1;
48
+ else
49
+ return 0;
50
}
51
52
static bool hunk_ends_at_or_before_line(git_blame_hunk *hunk, size_t line)
0 commit comments