X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding
	:in-reply-to; q=dns; s=default; b=QbzNDAdCvdGSPk5h6y8NTBeG/8tNB9
	wSoKM0vLJEqSy6nCBk+lD7CgawhwTN2Mgg+cyCB1Tt8TCnuCIpVuJH6Kb+xwKxuZ
	NY//Ce/UGCFUXFCbr8WIKmiRQNSTitzni36jsDs/1ZCLbmhoSlE1Vp5AB4xLMyHR
	bPx5eY/YAgb/I=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding
	:in-reply-to; s=default; bh=pT9zPjk+UtU4XtjK5HMI7Bdau/s=; b=vrEt
	24THGUNAgRfKmoEg7lNlOEgcD+GbdKBzijZ79MF+TqgmjPr8GRcuEB89hV59I/V3
	/911pXhkj6DB1k7d4Gamb7VlN46hMzws5lZai1Q+hNXX3Ia5WdLogRfudKQKCtzN
	aQ6OvxDgfbZM9nAveUyQMNkl6OmY3rJGJDN8n4A=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=BAYES_00,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_NONE,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2
X-HELO: plane.gmane.org
To: cygwin@cygwin.com
From: Ross Smith <rosss@pharos.co.nz>
Subject: Re: long_int vs int byte sizes
Date: Tue, 08 Apr 2014 11:41:31 +1200
Lines: 17
Message-ID: <534337AB.3000505@pharos.co.nz>
References: <CABKp57PdLMKqmGFhfMEN4BLPFcndkpibora5yx2Xdy6zh4+WzA@mail.gmail.com> <6BA0E670DE2A4416BB5A12250B427E5A@OwnerPC311012> <20140407084720.GC2061@calimero.vinschen.de> <5342B32D.80508@redhat.com> <20140407144234.GO2061@calimero.vinschen.de> <5342C6B1.2030106@redhat.com> <20140407155131.GR2061@calimero.vinschen.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
In-Reply-To: <20140407155131.GR2061@calimero.vinschen.de>
X-IsSubscribed: yes

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

