--- builtin/pack-objects.c | 2 +- pack-objects.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index 71056d8294..49b7af295d 100644 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@ -2023,7 +2023,7 @@ static int try_delta(struct unpacked *trg, struct unpacked *src, delta_buf = create_delta(src->index, trg->data, trg_size, &delta_size, max_size); if (!delta_buf) return 0; - if (delta_size >= (1U << OE_DELTA_SIZE_BITS)) { + if (delta_size >= (1UL << OE_DELTA_SIZE_BITS)) { free(delta_buf); return 0; } diff --git a/pack-objects.h b/pack-objects.h index edf74dabdd..26021328aa 100644 --- a/pack-objects.h +++ b/pack-objects.h @@ -14,7 +14,7 @@ * above this limit. Don't lower it too much. */ #define OE_SIZE_BITS 31 -#define OE_DELTA_SIZE_BITS 20 +#define OE_DELTA_SIZE_BITS 32 /* * State flags for depth-first search used for analyzing delta cycles. -- 2.18.0.1.gd83e732e4e