diff --git a/src/include/crc_byte.h b/src/include/crc_byte.h index 85b7221053..972b89a606 100644 --- a/src/include/crc_byte.h +++ b/src/include/crc_byte.h @@ -35,7 +35,7 @@ uint16_t crc16_byte(uint16_t prev_crc, uint8_t data); uint32_t crc32_byte(uint32_t prev_crc, uint8_t data); #define CRC(buf, size, crc_func) ({ \ - const uint8_t *_crc_local_buf = (const uint8_t *)buf; \ + const uint8_t *_crc_local_buf = (const uint8_t *)(buf); \ size_t _crc_local_size = size; \ __typeof__(crc_func(0, 0)) _crc_local_result = 0; \ while (_crc_local_size--) { \