From: Usman Akinyemi Date: Mon, 18 May 2026 18:27:19 GMT Subject: [PATCH v6 1/3] remote: fix sign-compare warnings in push_cas_option Message-ID: <20260518182721.155070-2-usmanakinyemi202@gmail.com> In-Reply-To: <20260518182721.155070-1-usmanakinyemi202@gmail.com> 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 --- remote.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.54.0