diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
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.
Diffstat (limited to 'source/parsing.c')
-rw-r--r--source/parsing.c2
1 file changed, 1 insertion, 1 deletion
diff --git a/source/parsing.c b/source/parsing.c
index 8aa0ee4..da09b2b 100644
--- a/source/parsing.c
+++ b/source/parsing.c
@@ -238,7 +238,7 @@ struct taginfo *cgit_parse_tag(struct tag *tag)
{
void *data;
enum object_type type;
- unsigned long size;
+ size_t size;
const char *p;
struct taginfo *info = NULL;