This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA:] stdint.h take 2: Add INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX


On Fri, 24 Apr 2009, Gregory Pietsch wrote:

> Would
> 
> #define UINTPTR_MAX ((PTRDIFF_MAX << 1) + 1)

No, that expression has a signed type and UINTPTR_MAX must have an 
unsigned type, namely uintptr_t, and must also be usable in preprocessor 
#if expressions so you can't use a cast to uintptr_t.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]