From: Martin Ă…gren Date: Thu, 06 Feb 2020 18:00:02 GMT Subject: Re: Printing a uint64_t portably in Git? Message-ID: In-Reply-To: On Thu, 6 Feb 2020 at 18:54, Han-Wen Nienhuys wrote: > 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". You could cast it? Grepping around, that seems to be how PRIuMAX is used: printf("%"PRIuMAX"\n", (uintmax_t)var); Martin