Skip to content

Commit 5004a8d

Browse files
ezekielnewrengitster
authored andcommitted
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>
1 parent e35877e commit 5004a8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

xdiff/xtypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ typedef struct s_xdfile {
5050
size_t nrec;
5151
ptrdiff_t dstart, dend;
5252
bool *changed;
53-
long *rindex;
53+
size_t *rindex;
5454
size_t nreff;
5555
} xdfile_t;
5656

0 commit comments

Comments
 (0)