From: Ross Smith <rosss@pharos.co.nz>
To: cygwin@cygwin.com
Subject: Re: long_int vs int byte sizes
Date: Mon, 07 Apr 2014 23:41:00 -0000 [thread overview]
Message-ID: <534337AB.3000505@pharos.co.nz> (raw)
In-Reply-To: <20140407155131.GR2061@calimero.vinschen.de>
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.
Ross Smith
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
next prev parent reply other threads:[~2014-04-07 23:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-06 6:05 Joseph Maxwell
2014-04-06 6:36 ` sisyphus1
2014-04-07 7:49 ` Csaba Raduly
2014-04-07 8:47 ` Corinna Vinschen
2014-04-07 14:16 ` Eric Blake
2014-04-07 14:42 ` Corinna Vinschen
2014-04-07 15:39 ` Eric Blake
2014-04-07 15:51 ` Corinna Vinschen
2014-04-07 23:41 ` Ross Smith [this message]
2014-04-08 8:48 ` Corinna Vinschen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=534337AB.3000505@pharos.co.nz \
--to=rosss@pharos.co.nz \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).