bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] Re: stdint_.h vs intmax_t & uintmax_t


From: Bruno Haible
Subject: Re: [bug-gnulib] Re: stdint_.h vs intmax_t & uintmax_t
Date: Mon, 9 Jan 2006 21:26:36 +0100
User-agent: KMail/1.5

Mark D. Baushke wrote:
> I have no problems with either
> ((size_t)~(size_t)0) or ((size_t)-1) being used.
> However, the previous definition in stdint_.h of
> '#define SIZE_MAX (~(size_t)0)' seemed wrong to me.

Yes, it was wrong. Thank you for noticing the problem.
I changed it to ((size_t)~(size_t)0) because I find it more comforting
to have no negative numbers involved when dealing with an unsigned type.

Bruno





reply via email to

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