diff options
author | murgatroid99 <michael.lumish@gmail.com> | 2015-01-20 15:59:55 -0800 |
---|---|---|
committer | murgatroid99 <michael.lumish@gmail.com> | 2015-01-20 15:59:55 -0800 |
commit | e1613dcd318f2b0240cea199d434dfeae05c5043 (patch) | |
tree | 5b17e4180b6b6e41ea201a8f0403de6c28bb8046 /src/core/support/murmur_hash.c | |
parent | 749985eb8df9bc96e289d9dc7ae205fa8491eabd (diff) | |
parent | c7ff547b86b5058fbbd8b578fc13af93e20c9d89 (diff) |
Merge branch 'master' of github.com:google/grpc
Diffstat (limited to 'src/core/support/murmur_hash.c')
-rw-r--r-- | src/core/support/murmur_hash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/support/murmur_hash.c b/src/core/support/murmur_hash.c index 5d30263e52..08b1eb80d8 100644 --- a/src/core/support/murmur_hash.c +++ b/src/core/support/murmur_hash.c @@ -46,8 +46,8 @@ handle aligned reads, do the conversion here */ #define GETBLOCK32(p, i) (p)[(i)] -gpr_uint32 gpr_murmur_hash3(const void* key, size_t len, gpr_uint32 seed) { - const gpr_uint8* data = (const gpr_uint8*)key; +gpr_uint32 gpr_murmur_hash3(const void *key, size_t len, gpr_uint32 seed) { + const gpr_uint8 *data = (const gpr_uint8 *)key; const int nblocks = len / 4; int i; @@ -57,8 +57,8 @@ gpr_uint32 gpr_murmur_hash3(const void* key, size_t len, gpr_uint32 seed) { const gpr_uint32 c1 = 0xcc9e2d51; const gpr_uint32 c2 = 0x1b873593; - const gpr_uint32* blocks = (const uint32_t*)(data + nblocks * 4); - const uint8_t* tail = (const uint8_t*)(data + nblocks * 4); + const gpr_uint32 *blocks = (const uint32_t *)(data + nblocks * 4); + const uint8_t *tail = (const uint8_t *)(data + nblocks * 4); /* body */ for (i = -nblocks; i; i++) { |