From: Dale Weiler Date: Sat, 23 Nov 2013 12:44:34 +0000 (-0500) Subject: Mark const for better generated code X-Git-Tag: xonotic-v0.8.0~74 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=556a84a46f8838ec6d548356bc721bf03f752436;p=xonotic%2Fgmqcc.git Mark const for better generated code --- diff --git a/util.c b/util.c index 4253bd3..ebfafa1 100644 --- a/util.c +++ b/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 */