From 2037a3ce5ebf13a817cc34d25b48c7e8ac953de9 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 5 Jun 2026 22:19:32 +0200 Subject: [PATCH] blame: widen find_line_starts() len parameter to size_t Prep for the upcoming blame_scoreboard.final_buf_size widening: prepare_lines() will pass a size_t through to find_line_starts(), and the other caller (fill_origin_blob() via o->file.size) already goes through long->size_t promotion. The function is file-static and only uses len as a loop bound. Assisted-by: Opus 4.7 Signed-off-by: Johannes Schindelin --- lib/blame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blame.c b/lib/blame.c index 567d2135ce..b1b4ba4e1e 100644 --- a/lib/blame.c +++ b/lib/blame.c @@ -345,7 +345,7 @@ static const char *get_next_line(const char *start, const char *end) } static int find_line_starts(int **line_starts, const char *buf, - unsigned long len) + size_t len) { const char *end = buf + len; const char *p;