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-shared.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/ui-shared.h') diff --git a/source/ui-shared.h b/source/ui-shared.h index dd90196..fdfdbed 100644 --- a/source/ui-shared.h +++ b/source/ui-shared.h @@ -109,7 +109,7 @@ extern void cgit_vprint_error_page(int code, const char *msg, const char *fmt, v /* * Answer with the error page for a blob of size bytes past max-blob-size. */ -extern void cgit_print_blob_too_large(unsigned long size); +extern void cgit_print_blob_too_large(size_t size); extern void cgit_print_pageheader(void); extern void cgit_print_filemode(unsigned short mode); extern void cgit_print_snapshot_links(const struct cgit_repo *repo, const char *ref, -- cgit