mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-19 14:50:48 +00:00
indent
This commit is contained in:
parent
ae9d3d42cf
commit
3b6e7d0ce1
1 changed files with 1 additions and 1 deletions
2
util.c
2
util.c
|
@ -191,7 +191,7 @@ uint16_t util_crc16(uint16_t current, const char *k, size_t len) {
|
|||
uint16_t util_crc16(const char *k, int len, const short clamp) {
|
||||
register uint16_t h= (uint16_t)0xFFFFFFFF;
|
||||
for (; len; --len, ++k)
|
||||
h = util_crc16_table[(h^((unsigned char)*k))&0xFF]^(h>>8);
|
||||
h = util_crc16_table[(h^((unsigned char)*k))&0xFF]^(h>>8);
|
||||
return (~h)%clamp;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue