delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/04/07/19:42:03

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT cygwin DOT com
From: Ross Smith <rosss AT pharos DOT co DOT 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 AT mail DOT gmail DOT com> <6BA0E670DE2A4416BB5A12250B427E5A AT OwnerPC311012> <20140407084720 DOT GC2061 AT calimero DOT vinschen DOT de> <5342B32D DOT 80508 AT redhat DOT com> <20140407144234 DOT GO2061 AT calimero DOT vinschen DOT de> <5342C6B1 DOT 2030106 AT redhat DOT com> <20140407155131 DOT GR2061 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019