diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-01 01:35:04 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-01 01:35:04 +0100 |
commit | 2c5248e2454da53dd7378d167324e917bbe99088 (patch) | |
tree | 48c7f7067f481a51429d695ebf096c7546e244db /src/basic/MurmurHash2.c | |
parent | journal/lookup3: silence gcc 7 implicit-fallthrough warning (diff) | |
download | systemd-2c5248e2454da53dd7378d167324e917bbe99088.tar.xz systemd-2c5248e2454da53dd7378d167324e917bbe99088.zip |
MurmurHash: all /* fall through */ comments
Diffstat (limited to 'src/basic/MurmurHash2.c')
-rw-r--r-- | src/basic/MurmurHash2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/basic/MurmurHash2.c b/src/basic/MurmurHash2.c index 9020793930..a282a21201 100644 --- a/src/basic/MurmurHash2.c +++ b/src/basic/MurmurHash2.c @@ -69,9 +69,9 @@ uint32_t MurmurHash2 ( const void * key, int len, uint32_t seed ) switch(len) { - case 3: h ^= data[2] << 16; - case 2: h ^= data[1] << 8; - case 1: h ^= data[0]; + case 3: h ^= data[2] << 16; /* fall through */ + case 2: h ^= data[1] << 8; /* fall through */ + case 1: h ^= data[0]; /* fall through */ h *= m; }; |