diff options
| author | Ezekiel Newren <ezekielnewren@gmail.com> | 2025-11-18 22:34:15 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-18 14:53:10 -0800 |
| commit | 10f97d6affcb59bdcb74a6878d3d9da0eec81296 (patch) | |
| tree | 64f673494667cfa3cd512e9dfaaad593caccd4f2 /xdiff/xtypes.h | |
| parent | f007f4f4b473565fb2e94780028399030926bacb (diff) | |
| download | git-10f97d6affcb59bdcb74a6878d3d9da0eec81296.tar.xz | |
xdiff: make xrecord_t.ptr a uint8_t instead of char
Make xrecord_t.ptr uint8_t because it's referring to bytes in memory.
In order to avoid a refactor avalanche, many uses of this field were
cast to char* or similar.
Places where casting was unnecessary:
xemit.c:156
xmerge.c:124
xmerge.c:127
xmerge.c:164
xmerge.c:169
xmerge.c:172
xmerge.c:178
Signed-off-by: Ezekiel Newren <ezekielnewren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'xdiff/xtypes.h')
| -rw-r--r-- | xdiff/xtypes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xdiff/xtypes.h b/xdiff/xtypes.h index 7a2d429ec5..69727fb299 100644 --- a/xdiff/xtypes.h +++ b/xdiff/xtypes.h @@ -39,7 +39,7 @@ typedef struct s_chastore { } chastore_t; typedef struct s_xrecord { - char const *ptr; + uint8_t const *ptr; long size; unsigned long ha; } xrecord_t; |
