projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
c++: fix -Wimplicit-fallthrough
[m6w6/libmemcached]
/
libhashkit
/
murmur.cc
diff --git
a/libhashkit/murmur.cc
b/libhashkit/murmur.cc
index e15e5108cfa4a8987a42f92410af23bc797708e8..3bdacf0e4e8a2e3371af9af3f28fd4ff1ca72b4b 100644
(file)
--- a/
libhashkit/murmur.cc
+++ b/
libhashkit/murmur.cc
@@
-96,8
+96,8
@@
uint32_t hashkit_murmur(const char *key, size_t length, void *context)
switch(length)
{
switch(length)
{
- case 3: h ^= ((uint32_t)data[2]) << 16;
- case 2: h ^= ((uint32_t)data[1]) << 8;
+ case 3: h ^= ((uint32_t)data[2]) << 16;
/* fall through */
+ case 2: h ^= ((uint32_t)data[1]) << 8;
/* fall through */
case 1: h ^= data[0];
h *= m;
default: break;
case 1: h ^= data[0];
h *= m;
default: break;