[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Minor nit about usage of sizeof(char)
- From: Richter, Jörg <Joerg.Richter@...>
- Date: Fri, 9 Nov 2007 13:54:20 +0100
>> This appears a few times in Lua sources.
>> But its per definition 1.
>
>And every C compiler in the world will optimise it as such at compile
>time. Just like expressions like strlen("a literal string") are
>optimised during compile time.
I know. But when seeing this I always get suspicious if the original author really wanted to write CHAR_BIT/8.
Jörg