X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fbenchmark%2Ftest_urcu_hash.h;fp=tests%2Fbenchmark%2Ftest_urcu_hash.h;h=5e84aefb6743f4004d317d104b7210aa51dc28d4;hp=023ae1c4a06fe4aeb24338e59bd11a905cdabd9a;hb=8771d88d00d2d492442c27e7ae0dfe3f78c8b2a0;hpb=99bfa9e9e88b273c5a3134eafb9c31938f3af7d6 diff --git a/tests/benchmark/test_urcu_hash.h b/tests/benchmark/test_urcu_hash.h index 023ae1c..5e84aef 100644 --- a/tests/benchmark/test_urcu_hash.h +++ b/tests/benchmark/test_urcu_hash.h @@ -249,10 +249,11 @@ uint32_t hash_u32( /*----------------------------------- handle the last 3 uint32_t's */ switch (length) { /* all the case statements fall through */ - case 3: c += k[2]; - case 2: b += k[1]; + case 3: c += k[2]; /* fall through */ + case 2: b += k[1]; /* fall through */ case 1: a += k[0]; final(a, b, c); + /* fall through */ case 0: /* case 0: nothing left to add */ break; }