Skip to content

Commit

Permalink
* FIX [hash] fix confilct with hash in nng
Browse files Browse the repository at this point in the history
Signed-off-by: Hermann0222 <[email protected]>
  • Loading branch information
StargazerWayne committed Jan 12, 2024
1 parent faffab9 commit 2355817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ nftp_crc(const uint8_t *data, size_t n)

/* Refer. https://homes.cs.washington.edu/~suciu/XMLTK/xmill/www/XMILL/html/crc32_8c-source.html */
/* This crc table is created with polynomial (0xedb88320L) */
const uint32_t crc32_table[256] = {
static const uint32_t crc32_table[256] = {
0x00000000L, 0x77073096L, 0xee0e612cL, 0x990951baL, 0x076dc419L,
0x706af48fL, 0xe963a535L, 0x9e6495a3L, 0x0edb8832L, 0x79dcb8a4L,
0xe0d5e91eL, 0x97d2d988L, 0x09b64c2bL, 0x7eb17cbdL, 0xe7b82d07L,
Expand Down

0 comments on commit 2355817

Please sign in to comment.