aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzekiel Newren <ezekielnewren@gmail.com>2025-10-29 22:19:40 +0000
committerJunio C Hamano <gitster@pobox.com>2025-10-30 07:13:34 -0700
commitfddf7dd3668e5bd9d6d1b3adaf0cc22f29deee0f (patch)
tree68fabcdda74a0efccb34167c3c52f4a62b18f8dc
parentdoc: define unambiguous type mappings across C and Rust (diff)
downloadgit-fddf7dd3668e5bd9d6d1b3adaf0cc22f29deee0f.tar.gz
git-fddf7dd3668e5bd9d6d1b3adaf0cc22f29deee0f.zip
xdiff: use ssize_t for dstart/dend, make them last in xdfile_t
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>
Diffstat (limited to '')
-rw-r--r--xdiff/xtypes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xdiff/xtypes.h b/xdiff/xtypes.h
index f145abba3e..7c8c057bca 100644
--- a/xdiff/xtypes.h
+++ b/xdiff/xtypes.h
@@ -47,10 +47,10 @@ typedef struct s_xrecord {
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 {