git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v3 4/4] commit.c: Fix type conversation warnings from msvc

From
Patrick Steinhardt <ps@pks.im>
Date
Jan 27, 2025, 07:26 UTC
Message-ID
<Z5c1ITUkNqB7CeHW@pks.im>
In-Reply-To
<20250126130038.3277-1-soekkle@freenet.de>
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
Previous: Sören KreckerNext: Phillip Wood
Message 2 of 3 in “commit.c: Fix type conversation warnings from msvc”
  1. 4/4 commit.c: Fix type conversation warnings from msvcSören Krecker, Jan 26, 2025
  2. Patrick SteinhardtJan 27, 2025
  3. Phillip WoodJan 29, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.