INTMAX_C macro buggy?

John Maddock john@johnmaddock.co.uk
Wed Jan 14 11:55:00 GMT 2004


Hi,

The current definition for INTMAX_C AND UINT_MAX_C appear to be wrong:

they are defined as:

/* Macros for greatest-width integer constant expressions */

#define INTMAX_C(x) x ## L

#define UINTMAX_C(x) x ## UL

But intmax_t is a long long, so these should really be appending a LL or ULL
suffix.

Regards,

John Maddock.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list