Commit 85f4e1e7d36a206d3861d49c00e207d3e7fcab80

Stefan Sperling 2020-12-17T16:17:51

fix the type of variable 'idx' in update_packidx()

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libexec/got-index-pack/got-index-pack.c b/libexec/got-index-pack/got-index-pack.c
index 9b4ff26..bcef095 100644
--- a/libexec/got-index-pack/got-index-pack.c
+++ b/libexec/got-index-pack/got-index-pack.c
@@ -569,7 +569,7 @@ static void
 update_packidx(struct got_packidx *packidx, int nobj,
     struct got_indexed_object *obj)
 {
-	uint32_t idx;
+	int idx;
 	uint32_t nindexed = be32toh(packidx->hdr.fanout_table[0xff]);
 
 	idx = find_object_idx(packidx, obj->id.sha1);