Undefine macros after using them

This commit is contained in:
Dale Weiler 2013-11-23 07:47:16 -05:00
parent 943cb2ca64
commit 457a1b9690

3
util.c
View file

@ -484,6 +484,9 @@ uint16_t util_crc16(uint16_t current, const char *GMQCC_RESTRICT k, size_t len)
data += 8;
}
#undef SELECT_BULK
#undef SELECT_DATA
/* deal with the rest with the byte method */
for (n = len & 7; n; --n)
h = (uint16_t)(h << 8) ^ (*util_crc16_table)[(h >> 8) ^ *data++];