summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 913b45f)
raw | patch | inline | side by side (parent: 913b45f)
author | Junio C Hamano <gitster@pobox.com> | |
Fri, 14 Dec 2007 20:00:42 +0000 (12:00 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 14 Dec 2007 20:00:42 +0000 (12:00 -0800) |
Inside xdiff library, the number of context lines is represented in
long, not int.
Noticed by Peter Baumann.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
long, not int.
Noticed by Peter Baumann.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff-interface.c | patch | blob | history |
diff --git a/xdiff-interface.c b/xdiff-interface.c
index f2cd488de03beabea4bae32b69008157612618e4..700def211e25a61591d4609ef19d64d91319f33e 100644 (file)
--- a/xdiff-interface.c
+++ b/xdiff-interface.c
* Trim down common substring at the end of the buffers,
* but leave at least ctx lines at the end.
*/
-static void trim_common_tail(mmfile_t *a, mmfile_t *b, int ctx)
+static void trim_common_tail(mmfile_t *a, mmfile_t *b, long ctx)
{
const int blk = 1024;
- long trimmed = 0, recovered = 0;
- int i;
+ long trimmed = 0, recovered = 0, i;
char *ap = a->ptr + a->size;
char *bp = b->ptr + b->size;
long smaller = (a->size < b->size) ? a->size : b->size;