lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] Concerning #define SZT_F PRIuMAX


From: Ambroz Bizjak
Subject: Re: [lwip-devel] Concerning #define SZT_F PRIuMAX
Date: Sat, 2 Jul 2016 01:02:47 +0200

Sorry, I meant to refer to this commit:
http://git.savannah.gnu.org/cgit/lwip.git/commit/?id=d3e55185c6b34d2d51c780af3c1ee77474572ba3


On Sat, Jul 2, 2016 at 12:59 AM, Ambroz Bizjak <address@hidden> wrote:
> Hi all,
>
> With regard to commit
> http://git.savannah.gnu.org/cgit/lwip.git/patch/?id=e6bc591a1e194e7b140e039190bd0468314a261b
>
> I'm sure this is wrong generally and specifically on the many (most?)
> 32-bit platforms, where size_t is 32-bit but uintmax_t is uint64_t.
>
> As far as I know, the C99 standard has %zu for printing a size_t, but
> I know this is a problem to use because you cannot know easily if it
> is supported.
>
> However, I think that "#define SZT_F PRIuPTR" has a much better chance
> of being right, making the assumption that uintptr_t is the same as
> size_t.
>
> Best regards,
> Ambroz



reply via email to

[Prev in Thread] Current Thread [Next in Thread]