diff --git a/third_party/go_crc64.c b/third_party/go_crc64.c index ef180d89928ccb0baa828e761a9678a9dd68ef26..44d0a756acba819d694eabcb111f762a962925f4 100644 --- a/third_party/go_crc64.c +++ b/third_party/go_crc64.c @@ -124,14 +124,14 @@ bool isula_crc_update(const isula_crc_table_t *tab, uint64_t *crc, unsigned char return true; } -void isula_crc_sum(uint64_t crc, uint8_t data[8]) +void isula_crc_sum(uint64_t crc, unsigned char data[8]) { - data[0] = (uint8_t)(crc >> 56); - data[1] = (uint8_t)(crc >> 48); - data[2] = (uint8_t)(crc >> 40); - data[3] = (uint8_t)(crc >> 32); - data[4] = (uint8_t)(crc >> 24); - data[5] = (uint8_t)(crc >> 16); - data[6] = (uint8_t)(crc >> 8); - data[7] = (uint8_t)(crc); + data[0] = (unsigned char)(crc >> 56); + data[1] = (unsigned char)(crc >> 48); + data[2] = (unsigned char)(crc >> 40); + data[3] = (unsigned char)(crc >> 32); + data[4] = (unsigned char)(crc >> 24); + data[5] = (unsigned char)(crc >> 16); + data[6] = (unsigned char)(crc >> 8); + data[7] = (unsigned char)(crc); } diff --git a/third_party/go_crc64.h b/third_party/go_crc64.h index 23433d54dd0cca7131cae9bc11936e5e7f17da36..a1438d82d0e4b23f22c3d9099bef2d55d3a562d5 100644 --- a/third_party/go_crc64.h +++ b/third_party/go_crc64.h @@ -45,7 +45,7 @@ const isula_crc_table_t* new_isula_crc_table(uint64_t poly); bool isula_crc_update(const isula_crc_table_t *tab, uint64_t *crc, unsigned char *data, size_t data_len); -void isula_crc_sum(uint64_t crc, uint8_t data[8]); +void isula_crc_sum(uint64_t crc, unsigned char data[8]); #ifdef __cplusplus }