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

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

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Nov 9, 2018, 19:03 UTC
Message-ID
<CAPig+cQE_2JTctQzCKmhMAqaFKf_MMBdEUS6kU41ZbyvUft0JQ@mail.gmail.com>
In-Reply-To
<20181109144638.5330-1-tboegi@web.de>
On Fri, Nov 9, 2018 at 9:46 AM <tboegi@web.de> wrote:
> When printing variables which contains a size, today "unsigned long"
> is used at many places.
> In order to be able to change the type from "unsigned long" into size_t
> some day the future, we need to have a way to print 64 bit variables
s/day/& in/
> on a system that has "unsigned long" defined to be 32 bit, link Win64.
s/link/like/
> Upcast all those variables into uintmax_t before they are printed.
> This is to prepare for a bigger change, when "unsligned long"
s/unsligned/unsigned/
> will be converted into size_t for variables which may be > 4Gib.
>
> Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Previous: tboegi@web.de
Message 2 of 2 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 9, 2018
  2. Eric SunshineNov 9, 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.