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

Printing a uint64_t portably in Git?

From
Han-Wen Nienhuys <hanwen@google.com>
Date
Feb 6, 2020, 17:52 UTC
Message-ID
<CAFQ2z_Pac6yb9Vi782VMtPkssNmdc08WntS7xRt8KCFfM6KVsw@mail.gmail.com>
Hi,
The reftable patch is starting to shape up, but I still see failures on OSX,
See https://dev.azure.com/gitgitgadget/git/_build/results?buildId=29465&view=logs&j=cfa20e98-6997-523c-4233-f0a7302c929f&t=3de1ae02-4adb-5138-54da-65cec5dd3141&l=518
What is the right incantation to do printf of a uint64_t on OSX ?

Apparently PRIuMAX is to be used for "uintmax_t", and not for "long long unsigned int".

-- 
Han-Wen Nienhuys - Google Munich
I work 80%. Don't expect answers from me on Fridays.
--

Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg

Geschäftsführer: Paul Manicle, Halimah DeLaine Prado
Next: Martin Ågren
Message 1 of 5 in “Printing a uint64_t portably in Git?”
  1. Han-Wen NienhuysFeb 6, 2020
  2. Martin ÅgrenFeb 6, 2020
  3. Han-Wen NienhuysFeb 6, 2020
  4. Martin ÅgrenFeb 6, 2020
  5. Junio C HamanoFeb 6, 2020

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.