Subject: [PATCH v6 1/3] remote: fix sign-compare warnings in push_cas_option

From: Usman Akinyemi <[email-masked]>
Date: Mon, 18 May 2026 23:57:19 +0530

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 <[email-masked]>
Signed-off-by: Usman Akinyemi <[email-masked]>
---
 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