Merge branch 'nd/maint-work-tree-fix' into maint
[gitweb.git] / index-pack.c
index db58e050410197f6eda4b91705e20a8bfc87b088..c232e3fc78a93a7080893976f33b1c88db2edadf 100644 (file)
@@ -254,7 +254,7 @@ static void *unpack_raw_entry(struct object_entry *obj, union delta_base *delta_
 
 static void *get_data_from_pack(struct object_entry *obj)
 {
-       unsigned long from = obj[0].idx.offset + obj[0].hdr_size;
+       off_t from = obj[0].idx.offset + obj[0].hdr_size;
        unsigned long len = obj[1].idx.offset - from;
        unsigned long rdy = 0;
        unsigned char *src, *data;