[flac-dev] FIxed rest of cast-align warnings

lvqcl lvqcl.mail at gmail.com
Sun Jun 29 14:19:26 PDT 2014


Erik de Castro Lopo wrote:

>> FLAC__int16 s16buffer[FLAC__MAX_BLOCK_SIZE * FLAC__MAX_CHANNELS * sizeof(FLAC__int32)/sizeof(FLAC__int16)];
>>
>> instead of
>>
>> FLAC__int16 s16buffer[FLAC__MAX_BLOCK_SIZE * FLAC__MAX_CHANNELS * sizeof(FLAC__int16)];
>
> Really? Would you also write this? :
>
> FLAC__int32 s32buffer[FLAC__MAX_BLOCK_SIZE * FLAC__MAX_CHANNELS * sizeof(FLAC__int32)/sizeof(FLAC__int32)];

Well, in the latter case it's obviously redundant; in the former case it's
not so obvious (at least, not for me).


More information about the flac-dev mailing list