ssize_t is appropriate for dstart and dend because they both describe
positive or negative offsets relative to a pointer.
A future patch will move these fields to a different struct. Moving
them to the end of xdfile_t now, means the field order of xdfile_t will
be disturbed less.
Signed-off-by: Ezekiel Newren <ezekielnewren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
typedef struct s_xdfile {
xrecord_t *recs;
long nrec;
- long dstart, dend;
bool *changed;
long *rindex;
long nreff;
+ ptrdiff_t dstart, dend;
} xdfile_t;
typedef struct s_xdfenv {