Mercurial > hg > nginx-quic
comparison src/core/ngx_murmurhash.c @ 7136:d409ab1e8e4d stable-1.12
Added missing "fall through" comments (ticket #1259).
Found by gcc7 (-Wimplicit-fallthrough).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 27 Apr 2017 16:57:18 +0300 |
parents | 203eb026ec07 |
children |
comparison
equal
deleted
inserted
replaced
7135:5e1112ac82d5 | 7136:d409ab1e8e4d |
---|---|
33 } | 33 } |
34 | 34 |
35 switch (len) { | 35 switch (len) { |
36 case 3: | 36 case 3: |
37 h ^= data[2] << 16; | 37 h ^= data[2] << 16; |
38 /* fall through */ | |
38 case 2: | 39 case 2: |
39 h ^= data[1] << 8; | 40 h ^= data[1] << 8; |
41 /* fall through */ | |
40 case 1: | 42 case 1: |
41 h ^= data[0]; | 43 h ^= data[0]; |
42 h *= 0x5bd1e995; | 44 h *= 0x5bd1e995; |
43 } | 45 } |
44 | 46 |