Skip to content

Commit 2f75581

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. dstart and dend will be deleted in a future patch series. Move them to the end to help avoid refactor conflicts. Signed-off-by: Ezekiel Newren <ezekielnewren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent bb15223 commit 2f75581

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
@@ -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
ssize_t dstart, dend;
5555
} xdfile_t;

0 commit comments

Comments
 (0)