Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRC32 Table 的类型宽度可能不足 #3

Open
Pearlfish-H opened this issue Dec 30, 2020 · 1 comment
Open

CRC32 Table 的类型宽度可能不足 #3

Pearlfish-H opened this issue Dec 30, 2020 · 1 comment

Comments

@Pearlfish-H
Copy link

C 标准只保证 unsigned 的宽度不小于 16 位。而在 CRC32 Table 中的数据是 32 位。此处应该使用 unsigned long 或者 uint32_t

@miloyip
Copy link
Owner

miloyip commented Dec 30, 2020

比较简单是 uint32_t,但这就要改成 >=C99 了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants