home bbs files messages ]

Just a sample of the Echomail archive

COMPLANC:

<< oldest | < older | list | newer > | newest >> ]

 Message 242,290 of 243,097 
 bart to David Brown 
 Re: _BitInt(N) 
 01 Dec 25 14:14:40 
 
From: bc@freeuk.com

On 01/12/2025 13:37, David Brown wrote:

> I'd be happy if C did not have integer promotions.

Well, now it doesn't with _BitInt types. So this stores 0 in 'a', not 256:

     int a;
     unsigned _BitInt(8) b = 255, c = 1;
     a = b + c;

--- SoupGate-Win32 v1.05
 * Origin: you cannot sedate... all the things you hate (1:229/2)

<< oldest | < older | list | newer > | newest >> ]


(c) 1994,  bbs@darkrealms.ca