www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/30/16:00:33

From: sparhawk AT eunet DOT at (Gerhard Gruber)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: long int
Date: Thu, 30 Jul 1998 19:30:54 GMT
Organization: EUnet Austria
Lines: 26
Message-ID: <35c1c7e0.12714548@news.Austria.EU.net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980730123358 DOT 12490H-100000 AT is> <35C08E3B DOT 18377E82 AT alcyone DOT com>
NNTP-Posting-Host: e042.dynamic.vienna.at.eu.net
Mime-Version: 1.0
NNTP-Posting-Date: 30 Jul 1998 19:31:38 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Destination: Erik Max Francis <max AT alcyone DOT com>
From: Gruber Gerhard
Group: comp.os.msdos.djgpp
Date: Thu, 30 Jul 1998 08:16:11 -0700:

>Eli Zaretskii wrote:
>
>> This is indeed so for GCC on x86 processors, but ANSI does NOT require
>> it.
>> ANSI only says that a long should be at least as wide as an int.
>
>And that it is _at least_ 32 bits.  It may be more, but you're
>guaranteed at least 32 bits.

This is for GCC so but this is not generally so. There are compilers where an
int is 16bit.

--
Bye,
   Gerhard

email: sparhawk AT eunet DOT at
       g DOT gruber AT sis DOT co DOT at

Spelling corrections are appreciated.

- Raw text -


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