Re: [PATCH] ctype: Fix bitfield types on 16-bit targets

Hans-Bernhard Bröker <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
Am 20.07.2018 um 21:11 schrieb Sebastian Huber:
> ----- Am 20. Jul 2018 um 19:37 schrieb Hans-Bernhard Bröker [email protected]:

>> I.e. compilers are not required to allow uint32_least_t in this place.

> The previous code used short for a bit-field, so this patch makes nothing worse in this respect 

That's not quite as certain as you make it sound.  Whether a compiler 
allows "short" for bitfields is entirely unrelated to it allowing 
"uint32_least_t" for them.  All four combinations of outcomes are 
possible (though not equally probable).


> Do you know a C99+ compiler which has a problem with such a bit-field?

No.  But neither do I claim my knowledge of C compilers to be complete.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.