comparison src/core/ngx_murmurhash.c @ 6994:f38647c651a8

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
6993:8801ff7d58e1 6994:f38647c651a8
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