Skip to content

Commit e789627

Browse files
ezekielnewrengitster
authored andcommitted
xdiff: change rindex from long to size_t in xdfile_t
rindex describes a index offset which means it's an index into memory which should use 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 307c33b commit e789627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xdiff/xtypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ typedef struct s_xdfile {
4949
xrecord_t *recs;
5050
size_t nrec;
5151
bool *changed;
52-
long *rindex;
52+
size_t *rindex;
5353
size_t nreff;
5454
ptrdiff_t dstart, dend;
5555
} xdfile_t;

0 commit comments

Comments
 (0)