[PATCH 0/4] enhance string-list API to fix sign compare warnings
- From
shejialuo <shejialuo@gmail.com>
- Date
- Sep 7, 2025, 16:40 UTC
- Message-ID
- <aL21cEM0OcnrKtBW@ArchLinux>
Hi All:
This is a small PATCH to enhance string-list API "string_list_find_insert_index" which has introduced sign compare warnings.
Thanks, Jialuo
shejialuo (4):
string-list: allow passing NULL for `get_entry_index`
string-list: replace negative index encoding with "exact_match"
parameter
string-list: change "string_list_find_insert_index" return type to
"size_t"
refs: enable sign compare warnings checkadd-interactive.c | 7 ++++--- mailmap.c | 10 ++++------ refs.c | 13 ++++--------- string-list.c | 16 +++++++--------- string-list.h | 4 ++-- 5 files changed, 21 insertions(+), 29 deletions(-)
-- 2.51.0