xdiff: change rindex from long to size_t in xdfile_t

The field rindex describes an index offset for other arrays. Change it to size_t. Changing the type of rindex from long to size_t has no cascading refactor impact because it is only ever used to directly index other arrays. Signed-off-by: Ezekiel Newren <ezekielnewren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ezekiel Newren committed Nov 18, 2025 at 22:34 UTC 5004a8da14e2aa80b5697b0a3a60e594af1c8292
1 file changed +1 -1
xdiff/xtypes.h
+1 -1
@@ -50,7 +50,7 @@ typedef struct s_xdfile {
50 size_t nrec;
51 ptrdiff_t dstart, dend;
52 bool *changed;
53 - long *rindex;
53 + size_t *rindex;
54 size_t nreff;
55 } xdfile_t;
56