Skip to content

Commit 3b60549

Browse files
committed
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>
1 parent e2a6a23 commit 3b60549

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

0 commit comments

Comments
 (0)