]> git.ipfire.org Git - thirdparty/git.git/commitdiff
SQUASH??? -Werror=sign-compare workaround
authorJunio C Hamano <gitster@pobox.com>
Tue, 28 Apr 2026 01:37:24 +0000 (10:37 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Apr 2026 01:37:24 +0000 (10:37 +0900)
builtin/push.c
remote.h

index 10384f265cc8952858d6d7167e3aa890dedea864..6021b71d66845567a155ddd2242ca6fb4fba4fb9 100644 (file)
@@ -552,7 +552,8 @@ static int push_multiple(struct string_list *list,
                         const char **refspecs,
                         int refspec_nr)
 {
-       int i, result = 0;
+       int result = 0;
+       size_t i;
        struct strvec argv = STRVEC_INIT;
 
        strvec_push(&argv, "push");
index 8ff2bd88fa1b299e991ce5b90340f6fed53f895b..7915be3111daa73320ffcaf38560bbf7a49f8233 100644 (file)
--- a/remote.h
+++ b/remote.h
@@ -430,8 +430,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);