Skip to content

Commit f007f4f

Browse files
ezekielnewrengitster
authored andcommitted
xdiff: use ptrdiff_t for dstart/dend
ptrdiff_t is appropriate for dstart and dend because they both describe positive or negative offsets relative to a pointer. Signed-off-by: Ezekiel Newren <ezekielnewren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 6971934 commit f007f4f

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
@@ -47,7 +47,7 @@ typedef struct s_xrecord {
4747
typedef struct s_xdfile {
4848
xrecord_t *recs;
4949
long nrec;
50-
long dstart, dend;
50+
ptrdiff_t dstart, dend;
5151
bool *changed;
5252
long *rindex;
5353
long nreff;

0 commit comments

Comments
 (0)