summaryrefslogtreecommitdiffhomepage
path: root/include/stc/ccommon.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-04-27 12:41:24 +0200
committerTyge Løvset <[email protected]>2023-04-27 12:41:24 +0200
commitba3f2284731e50100d249cf1d825b8d24efad658 (patch)
tree888fd07f8dac722c913cb3bd7358dd20dafce70c /include/stc/ccommon.h
parent9d5766ae528595050dcfe0db4c1c3c0c058b186c (diff)
downloadSTC-modified-ba3f2284731e50100d249cf1d825b8d24efad658.tar.gz
STC-modified-ba3f2284731e50100d249cf1d825b8d24efad658.zip
removing compiler warning ++.
Diffstat (limited to 'include/stc/ccommon.h')
-rw-r--r--include/stc/ccommon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/ccommon.h b/include/stc/ccommon.h
index 4f9fa398..73a3d5ef 100644
--- a/include/stc/ccommon.h
+++ b/include/stc/ccommon.h
@@ -147,7 +147,7 @@ STC_INLINE uint64_t cfasthash(const void* key, intptr_t len) {
case 0: return 1;
}
const uint8_t *x = (const uint8_t*)key;
- uint64_t h = *x << 7, n = (uint64_t)len >> 3;
+ uint64_t h = (uint64_t)*x << 7, n = (uint64_t)len >> 3;
len &= 7;
while (n--) {
memcpy(&u8, x, 8), x += 8;