Re: [PATCH v3 4/4] commit.c: Fix type conversation warnings from msvc
On Sun, Jan 26, 2025 at 02:00:38PM +0100, Sören Krecker wrote:
Show 12 quoted lines
> diff --git a/commit.c b/commit.c
> index 540660359d..c9cc56bd9f 100644
> --- a/commit.c
> +++ b/commit.c
> @@ -1530,7 +1530,7 @@ int commit_tree(const char *msg, size_t msg_len, const struct object_id *tree,
> return result;
> }
>
> -static int find_invalid_utf8(const char *buf, int len)
> +static int find_invalid_utf8(const char *buf, size_t len)
> {
> int offset = 0;Shouldn't the type of `offset` be adjusted, as well?
Patrick