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 <gitster@pobox.com> Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Usman Akinyemi committed May 3, 2026 at 21:04 UTC 6ab1b3b74d02151e7570b82554e9cadebe0ea6b8
1 file changed +2 -2
remote.h
+2 -2
@@ -418,8 +418,8 @@ struct push_cas_option {
418 unsigned use_tracking:1;
419 char *refname;
420 } *entry;
421 - int nr;
422 - int alloc;
421 + size_t nr;
422 + size_t alloc;
423 };
424
425 int parseopt_push_cas_option(const struct option *, const char *arg, int unset);