]> git.ipfire.org Git - thirdparty/git.git/commit
xdiff: use unambiguous types in xdl_hash_record()
authorEzekiel Newren <ezekielnewren@gmail.com>
Tue, 18 Nov 2025 22:34:17 +0000 (22:34 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Nov 2025 22:53:10 +0000 (14:53 -0800)
commitb0d4ae30f5a23fa9da87e9396b78e6442b351ddc
tree072d56c92b5192668af7f324c52f0599a89b9cd5
parent9bd193253c5e590203fc566ad7cff8f891ec0493
xdiff: use unambiguous types in xdl_hash_record()

Convert the function signature and body to use unambiguous types. char
is changed to uint8_t because this function processes bytes in memory.
unsigned long to uint64_t so that the hash output is consistent across
platforms. `flags` was changed from long to uint64_t to ensure the
high order bits are not dropped on platforms that treat long as 32
bits.

Signed-off-by: Ezekiel Newren <ezekielnewren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff-interface.c
xdiff/xprepare.c
xdiff/xutils.c
xdiff/xutils.h