提交 b40b8c39 编写于 作者: H haozi007 提交者: lifeng68

change type of crc sum

Signed-off-by: Nhaozi007 <liuhao27@huawei.com>
上级 9e5a1ca0
......@@ -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);
}
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册