From 608b7f2fe08619ee575e4ac1c2d29c6810b95a3f Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Wed, 25 Apr 2001 01:08:18 +0000 Subject: [PATCH] parenthesize macro arguments --- src/libFLAC/include/private/crc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libFLAC/include/private/crc.h b/src/libFLAC/include/private/crc.h index 783f00a6..16b3fe3c 100644 --- a/src/libFLAC/include/private/crc.h +++ b/src/libFLAC/include/private/crc.h @@ -27,7 +27,7 @@ ** init = 0 */ extern byte const FLAC__crc8_table[256]; -#define FLAC__CRC8_UPDATE(data, crc) crc = FLAC__crc8_table[crc ^ data]; +#define FLAC__CRC8_UPDATE(data, crc) (crc) = FLAC__crc8_table[(crc) ^ (data)]; void FLAC__crc8_update(const byte data, uint8 *crc); void FLAC__crc8_update_block(const byte *data, unsigned len, uint8 *crc); uint8 FLAC__crc8(const byte *data, unsigned len); @@ -37,7 +37,7 @@ uint8 FLAC__crc8(const byte *data, unsigned len); ** init = 0 */ extern uint16 FLAC__crc16_table[256]; -#define FLAC__CRC16_UPDATE(data, crc) crc = (crc<<8) ^ FLAC__crc16_table[(crc>>8) ^ data]; +#define FLAC__CRC16_UPDATE(data, crc) (crc) = ((crc)<<8) ^ FLAC__crc16_table[((crc)>>8) ^ (data)]; void FLAC__crc16_update(const byte data, uint16 *crc); void FLAC__crc16_update_block(const byte *data, unsigned len, uint16 *crc); uint16 FLAC__crc16(const byte *data, unsigned len);