From: Usman Akinyemi Date: Sun, 3 May 2026 15:34:00 +0000 (+0530) Subject: remote: fix sign-compare warnings in push_cas_option X-Git-Tag: v2.55.0-rc0~14^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ab1b3b74d02151e7570b82554e9cadebe0ea6b8;p=thirdparty%2Fgit.git remote: fix sign-compare warnings in push_cas_option Replace `int` with `size_t` for `nr` and `alloc` in `struct push_cas_option` to avoid -Werror=sign-compare warnings when comparing against size-based values. Suggested-by: Junio C Hamano Signed-off-by: Usman Akinyemi Signed-off-by: Junio C Hamano --- diff --git a/remote.h b/remote.h index fc052945ee..741d14a9fc 100644 --- a/remote.h +++ b/remote.h @@ -418,8 +418,8 @@ struct push_cas_option { unsigned use_tracking:1; char *refname; } *entry; - int nr; - int alloc; + size_t nr; + size_t alloc; }; int parseopt_push_cas_option(const struct option *, const char *arg, int unset);