remove the call to 'labs' since unsigned values cannot be negative

pull/3/head
Wang Yaofu 4 years ago committed by GitHub
parent 8045f50ba6
commit 8083fd4810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -74,5 +74,5 @@ uint32_t crc32(const char* s, int len)
crc32val = crc32_tab[(crc32val ^ s[i]) & 0xFF] ^ ((crc32val >> 8) & 0x00FFFFFF);
}
return labs(crc32val ^ 0xFFFFFFFF);
}
return crc32val ^ 0xFFFFFFFF;
}

Loading…
Cancel
Save