[flac-dev] [PATCH] for crc.h

Erik de Castro Lopo mle+la at mega-nerd.com
Sat Jul 19 01:23:13 PDT 2014


lvqcl wrote:

> The definition of FLAC__CRC16_UPDATE contain one extra pair of parentheses:
> 
> #define FLAC__CRC16_UPDATE(data, crc) (((((crc)<<8) & 0xffff) ^ FLAC__crc16_table[((crc)>>8) ^ (data)]))
> 
>   ((     ( ((crc)<<8) & 0xffff ) ^ FLAC__crc16_table[ ((crc)>>8) ^ (data) ]     ))
>   ^                                                                              ^
> 
> The patch is attached.

Applied. Thanks.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the flac-dev mailing list