diff options
author | Arnav Bhate <bhatearnav@gmail.com> | 2025-03-10 23:38:53 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-03-10 13:21:13 -0700 |
commit | 2bfd3b368572cbf1ce287de09db08b7e7e429ecd (patch) | |
tree | a90211cc0886e3fb7e5d915f4eb790edca1ebc49 /builtin/commit.c | |
parent | 87a0bdbf0f72b7561f3cd50636eee33dcb7dbcc3 (diff) |
decorate: fix sign comparison warnings
There are multiple instances where ints have been initialized with
values of unsigned ints, and where negative values don't mean anything.
When such ints are compared with unsigned ints, it causes sign comparison
warnings.
Also, some of these are used just as stand-ins for their initial
values, never being modified, thus obscuring the specific conditions
under which certain operations happen.
Replace int with unsigned int for 2 variables, and replace the
intermediate variables with their initial values for 2 other variables.
Signed-off-by: Arnav Bhate <bhatearnav@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions