Re: My idea of fully-portable C code
- From: Tomás Ó hÉilidhe <toe@xxxxxxxxxxx>
- Date: Tue, 13 May 2008 16:00:50 -0700 (PDT)
On May 13, 11:18 pm, Tomás Ó hÉilidhe <t...@xxxxxxxxxxx> wrote:
No, it doesn't. The chunk size is determined by BITS_PER_CHUNK. The^
type, uint8_fast_t, can indeed store values outside the "chunk value
range" but that doesn't mean you should try to store 467 in a 2-Bit
number. If you compile the program in debug mode, there will be an
assertion failure to let you know that 467 is outside the range.
This is now different from trying to store 300 in an unsigned char.
|
|
That "now" should be "no".
.
- References:
- My idea of fully-portable C code
- From: Tomás Ó hÉilidhe
- Re: My idea of fully-portable C code
- From: Hans-Bernhard Bröker
- Re: My idea of fully-portable C code
- From: Tomás Ó hÉilidhe
- My idea of fully-portable C code
- Prev by Date: Re: Best way to get 2.5 volts from somewhere? (Vcc = 5 volts)
- Next by Date: Re: Best way to get 2.5 volts from somewhere? (Vcc = 5 volts)
- Previous by thread: Re: My idea of fully-portable C code
- Next by thread: Re: My idea of fully-portable C code
- Index(es):
Relevant Pages
|