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

Re: [PATCH v2 1/1] Upcast size_t variables to uintmax_t when printing

From
Jeff King <peff@peff.net>
Date
Nov 12, 2018, 12:26 UTC
Message-ID
<20181112122600.GD3956@sigill.intra.peff.net>
In-Reply-To
<20181111101650.GA4471@tor.lan>
On Sun, Nov 11, 2018 at 11:16:50AM +0100, Torsten Bögershausen wrote:
Show 24 quoted lines
> > I like the overall direction. I feel a little funny doing this step now,
> > and not as part of a series to convert individual variables. But I
> > cannot offhand think of any reason that it would behave badly even if
> > the other part does not materialize
> > 
> 
> Hej all,
> There may be some background information missing:
> - I did a 2-patch series based on this commit in pu:
>     commit 37c59c3e8fac8bae7ccc5baa148b0e9bae0c8d65
>     Author: Junio C Hamano <gitster@pobox.com>
>     Date:   Sat Oct 27 16:42:25 2018 +0900
> 
>         treewide: apply cocci patch
> 
> (that patch was never send out, see below)
> ....
> The week later, I tried to apply it on pu, but that was nearly hopeless,
> as too much things had changed on pu.
> I had the chance to compile & test it, but decided to take "part2" before
> "part1", so to say:
> Fix all the printing, and wait for the master branch to settle,
> and then do the "unsigned long" -> size_t conversion.
> That will probably happen after 2.20.

Ah, OK. I am fine with that approach. My thinking was that we'd see individual functions and their callers converted, which is another way to do it incrementally. But sometimes that ends up cascading and you end up having to change quite a bit of the callstack anyway.

-Peff
Previous: Torsten Bögershausen
Message 4 of 4 in “Upcast size_t variables to uintmax_t when printing”
  1. 1/1 Upcast size_t variables to uintmax_t when printingtboegi@web.de, Nov 11, 2018
  2. Jeff KingNov 11, 2018
  3. Torsten BögershausenNov 11, 2018
  4. Jeff KingNov 12, 2018

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.