Arnav Bhate
d2fc29380a
rm: fix sign comparison warnings
...
There are multiple places in loops, where a signed and an
unsigned data type are compared. Git uses a mix of signed and unsigned
types to store lengths of arrays. This sometimes leads to using a signed
index for an array whose length is stored in an unsigned variable or
vice versa.
get_ours_cache_pos is a special case where i, though derived from a
signed variable is never negative. Move this part to the caller side
and make i an unsigned argument of the function. Rename i to
pos to make it descriptive, now that it is a function argument.
Replace signed data types with unsigned data types and vice versa
wherever necessary. Where both signed and unsigned data types have been
used, define a new variable in the scope of the for loop for use as the
iterator. Remove #define DISABLE_SIGN_COMPARE_WARNINGS.
Signed-off-by: Arnav Bhate <bhatearnav@gmail.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2025-03-29 01:04:40 -07:00
..
2024-12-06 20:20:04 +09:00
2025-02-07 09:59:22 -08:00
2024-10-25 14:02:36 -04:00
2024-09-13 14:32:24 -07:00
2024-10-11 09:37:18 -07:00
2025-02-18 15:30:31 -08:00
2024-12-06 20:20:02 +09:00
2025-01-21 08:44:54 -08:00
2025-01-29 14:05:09 -08:00
2025-02-27 15:23:00 -08:00
2024-12-13 07:33:36 -08:00
2024-12-23 09:32:11 -08:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2025-02-21 18:27:16 -08:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2024-12-23 09:32:11 -08:00
2024-12-06 20:20:02 +09:00
2025-03-05 10:37:43 -08:00
2024-09-13 14:32:24 -07:00
2024-12-18 10:44:30 -08:00
2025-01-17 13:30:03 -08:00
2025-02-28 13:54:11 -08:00
2025-02-07 09:59:22 -08:00
2024-12-04 08:21:54 +09:00
2025-01-28 13:02:24 -08:00
2024-11-01 12:53:19 -04:00
2024-09-13 14:32:24 -07:00
2025-01-28 13:02:22 -08:00
2024-12-23 09:32:11 -08:00
2024-12-18 10:44:31 -08:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2024-12-06 20:20:02 +09:00
2025-02-06 13:00:21 -08:00
2024-12-06 20:20:02 +09:00
2025-03-05 10:37:43 -08:00
2025-01-17 13:30:03 -08:00
2025-03-10 08:45:58 -07:00
2024-09-23 10:35:09 -07:00
2025-01-21 09:06:24 -08:00
2024-12-06 20:20:04 +09:00
2025-02-07 09:59:23 -08:00
2025-01-17 13:30:03 -08:00
2025-03-05 10:37:43 -08:00
2025-01-17 13:30:03 -08:00
2025-01-01 14:13:01 -08:00
2024-09-13 14:32:24 -07:00
2024-12-18 10:44:30 -08:00
2024-11-26 10:36:08 +09:00
2025-02-10 10:18:31 -08:00
2025-02-28 13:54:11 -08:00
2024-10-14 12:33:02 -04:00
2025-02-28 13:54:11 -08:00
2025-01-17 13:30:03 -08:00
2024-11-04 22:37:51 -08:00
2024-09-13 14:32:24 -07:00
2024-12-18 10:44:31 -08:00
2025-01-17 13:30:03 -08:00
2024-12-27 08:12:40 -08:00
2024-12-06 20:20:02 +09:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2025-02-18 09:52:39 -08:00
2025-01-17 13:30:03 -08:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-12-04 10:32:20 +09:00
2024-12-06 20:20:02 +09:00
2024-12-06 20:20:02 +09:00
2025-02-28 13:54:11 -08:00
2025-02-12 10:08:51 -08:00
2025-01-17 13:30:03 -08:00
2024-12-06 20:20:03 +09:00
2025-01-31 10:06:11 -08:00
2024-09-13 14:33:30 -07:00
2024-12-18 10:44:30 -08:00
2024-12-06 20:20:04 +09:00
2025-02-04 09:51:41 -08:00
2024-12-23 09:32:17 -08:00
2024-09-13 14:32:24 -07:00
2025-02-28 13:54:11 -08:00
2025-03-05 10:37:43 -08:00
2024-12-06 20:20:03 +09:00
2025-03-03 14:51:29 -08:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2025-03-05 10:37:43 -08:00
2025-02-12 10:08:52 -08:00
2025-02-07 09:59:22 -08:00
2025-02-06 12:23:54 -08:00
2025-02-28 13:54:11 -08:00
2024-12-06 20:20:03 +09:00
2025-02-05 09:32:01 -08:00
2025-02-28 13:54:11 -08:00
2024-12-06 20:20:03 +09:00
2025-03-29 01:04:40 -07:00
2024-12-18 10:44:30 -08:00
2024-12-06 20:20:03 +09:00
2024-12-06 20:20:02 +09:00
2025-01-31 09:44:16 -08:00
2024-09-13 14:32:24 -07:00
2024-12-06 20:20:02 +09:00
2024-12-06 20:20:04 +09:00
2024-09-13 14:32:24 -07:00
2025-02-07 09:59:22 -08:00
2024-09-13 14:32:24 -07:00
2025-02-07 09:59:22 -08:00
2025-01-17 13:30:03 -08:00
2025-01-31 10:06:11 -08:00
2025-01-17 13:30:03 -08:00
2024-12-06 20:20:02 +09:00
2025-02-10 16:20:21 -08:00
2025-01-17 13:30:03 -08:00
2024-12-18 10:44:30 -08:00
2025-01-28 13:02:22 -08:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2025-01-21 09:06:24 -08:00
2025-02-28 13:54:11 -08:00
2024-09-23 10:35:09 -07:00