Message ID | f96d5ab484c4971fce65f832185237ede0d37659.1661243463.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | cfd0163d641e785f20d29b70edf83c777941594f |
Headers | show |
Series | Some fixes and an improvement for using CTest on Windows | expand |
diff --git a/add-patch.c b/add-patch.c index 509ca04456b..3524555e2b0 100644 --- a/add-patch.c +++ b/add-patch.c @@ -1547,7 +1547,7 @@ soft_increment: strbuf_remove(&s->answer, 0, 1); strbuf_trim(&s->answer); i = hunk_index - DISPLAY_HUNKS_LINES / 2; - if (i < file_diff->mode_change) + if (i < (int)file_diff->mode_change) i = file_diff->mode_change; while (s->answer.len == 0) { i = display_hunks(s, file_diff, i);