ALLOC_GROW: avoid -Wsign-compare warnings
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index 9c382580306e340ed6333f96bc4919c4c507a7b9..c7cf683e0be05941b3f8beb5184a08c785b174fd 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -825,7 +825,7 @@ static void emit_rewrite_diff(const char *name_a,
 
 struct diff_words_buffer {
        mmfile_t text;
-       long alloc;
+       unsigned long alloc;
        struct diff_words_orig {
                const char *begin, *end;
        } *orig;