diff options
-rw-r--r-- | dir.c | 3 | ||||
-rw-r--r-- | pack-bitmap.c | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -2831,7 +2831,8 @@ struct untracked_cache *read_untracked_extension(const void *data, unsigned long struct read_data rd; const unsigned char *next = data, *end = (const unsigned char *)data + sz; const char *ident; - int ident_len, len; + int ident_len; + ssize_t len; const char *exclude_per_dir; if (sz <= 1 || end[-1] != '\0') diff --git a/pack-bitmap.c b/pack-bitmap.c index 9270983e5f..7e92d83195 100644 --- a/pack-bitmap.c +++ b/pack-bitmap.c @@ -118,7 +118,7 @@ static struct ewah_bitmap *read_bitmap_1(struct bitmap_index *index) { struct ewah_bitmap *b = ewah_pool_new(); - int bitmap_size = ewah_read_mmap(b, + ssize_t bitmap_size = ewah_read_mmap(b, index->map + index->map_pos, index->map_size - index->map_pos); |