[flac-dev] FIxed rest of cast-align warnings
lvqcl.mail at gmail.com
Sun Jun 29 11:16:55 PDT 2014
Erik de Castro Lopo wrote:
> In commit 3eb4094b859 I think I have fixed all the cast-align warnings.
> I have tested this in amd64/Linux (little endian) and powerpc64/Linux
> (big endian) and it passed all tests (including the new MD5 tests).
About a commit http://git.xiph.org/?p=flac.git;a=commitdiff;h=40e817dc526d1d41e900bb0f54d1a4451bda01ed
I think it's more consistent to write
FLAC__int16 s16buffer[FLAC__MAX_BLOCK_SIZE * FLAC__MAX_CHANNELS * sizeof(FLAC__int32)/sizeof(FLAC__int16)];
FLAC__int16 s16buffer[FLAC__MAX_BLOCK_SIZE * FLAC__MAX_CHANNELS * sizeof(FLAC__int16)];
More information about the flac-dev