From 65dd06b7acff7ad14ec40c8616597426c49bc48d Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 17 Oct 2026 12:53:14 -1000 Subject: Hold object sizes in size_t as git 2.55 does Git 2.55 moved object sizes from unsigned long to size_t. The two are the same type on 64-bit hosts, but not on a 32-bit one, where GCC 14 rejects the mismatched pointers, so cgit stopped compiling there. --- source/ui-plain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/ui-plain.c') diff --git a/source/ui-plain.c b/source/ui-plain.c index 136e1f4..67b2044 100644 --- a/source/ui-plain.c +++ b/source/ui-plain.c @@ -50,7 +50,7 @@ static void print_object(const struct object_id *oid, const char *path) { enum object_type type; char *buf, *mimetype; - unsigned long size; + size_t size; type = odb_read_object_info(the_repository->objects, oid, &size); if (type == OBJ_BAD) { -- cgit