From 6ab1b3b74d02151e7570b82554e9cadebe0ea6b8 Mon Sep 17 00:00:00 2001 From: Usman Akinyemi Date: Sun, 3 May 2026 21:04:00 +0530 Subject: [PATCH] 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 --- 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.52.0