mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-19 14:50:48 +00:00
Mark const for better generated code
This commit is contained in:
parent
b52cf4d47e
commit
556a84a46f
1 changed files with 1 additions and 1 deletions
2
util.c
2
util.c
|
@ -460,7 +460,7 @@ uint16_t util_crc16(uint16_t current, const char *k, size_t len) {
|
|||
register uint16_t h = current;
|
||||
|
||||
/* don't load twice */
|
||||
uint8_t *GMQCC_RESTRICT data = (uint8_t *GMQCC_RESTRICT)k;
|
||||
const uint8_t *GMQCC_RESTRICT data = (const uint8_t *GMQCC_RESTRICT)k;
|
||||
size_t n;
|
||||
|
||||
/* deal with the first bytes as bytes until we reach an 8 byte boundary */
|
||||
|
|
Loading…
Reference in a new issue