]> git.ipfire.org Git - thirdparty/git.git/commit
sign-compare: avoid comparing ptrdiff with an int/unsigned
authorJunio C Hamano <gitster@pobox.com>
Fri, 27 Dec 2024 20:25:30 +0000 (12:25 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Dec 2024 20:25:30 +0000 (12:25 -0800)
commit24027256aa9614a445563707a72af7ce5ff49b5b
treea47b937fcb4fab8b088ea8855ede04113fd3355a
parent5e7fe8a7b89a07d8c3ab298ac69bc33f6ba88b47
sign-compare: avoid comparing ptrdiff with an int/unsigned

Instead, offset the base pointer with integer and compare it with
the other pointer.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
shallow.c