aboutsummaryrefslogtreecommitdiff
path: root/src/siphash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/siphash.c')
-rw-r--r--src/siphash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/siphash.c b/src/siphash.c
index 842af7d..7a5c8d4 100644
--- a/src/siphash.c
+++ b/src/siphash.c
@@ -52,7 +52,8 @@ siphash (const unsigned char key[16], const unsigned char *m, size_t len)
v1 ^= v2; v3 ^= v0; \
v2 = ROTL64(v2,32);
- for (i = 0, blocks = (len & ~7); i < blocks; i += 8) {
+ for (i = 0, blocks = (len & ~(size_t) 7); i < blocks; i += 8)
+ {
mi = u8to64_le (m + i);
v3 ^= mi;
COMPRESS