long_int vs int byte sizes

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Apr 8 08:48:00 GMT 2014


On Apr  8 11:41, Ross Smith wrote:
> On 2014-04-08 03:51, Corinna Vinschen wrote:
> >On Apr  7 09:39, Eric Blake wrote:
> >>
> >>C99 5.2.4.2.1 Sizes of integer types <limits.h>
> >>
> >>requires CHAR_BIT to be 8 or larger, UCHAR_MAX to be 255 or larger,
> >>USHRT_MAX to be 65535 or larger (oh, so I was wrong above; 8-bit short
> >>is not allowed), UINT_MAX to be 65535 or larger, ULONG_MAX to be
> >>4294967295 or larger, and ULLONG_MAX to be 18446744073709551615 or larger.
> >
> >C99 actually requires that?  Wow.  Modern times...
> 
> It was already required in C89; the only change in C99 was the
> addition of long long.

C89 actually requires that?  Wow.  Modern times...


;)
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20140408/2f7b4baf/attachment.sig>


More information about the Cygwin mailing list