diff options
author | Anatol Belski <ab@php.net> | 2021-03-22 21:17:43 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2021-03-26 23:29:01 +0100 |
commit | e0e3d9851ae517429d1bfc7eb2df9df917406d2c (patch) | |
tree | 56ada806ef1f546bff92cff220cf1d7f79063e40 /ext/hash/murmur/PMurHash128.c | |
parent | 2c4346f9deaca4604fea4783fabc894af352f35b (diff) | |
download | php-git-e0e3d9851ae517429d1bfc7eb2df9df917406d2c.tar.gz |
hash: Fix -Warray-parameter= warnings
Signed-off-by: Anatol Belski <ab@php.net>
Diffstat (limited to 'ext/hash/murmur/PMurHash128.c')
-rw-r--r-- | ext/hash/murmur/PMurHash128.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/hash/murmur/PMurHash128.c b/ext/hash/murmur/PMurHash128.c index 2856542190..4425f81575 100644 --- a/ext/hash/murmur/PMurHash128.c +++ b/ext/hash/murmur/PMurHash128.c @@ -170,7 +170,7 @@ do {\ } while(0) /* Finalize a hash. To match the original Murmur3_128x86 the total_length must be provided */ -void PMurHash128x86_Result(const uint32_t *ph, const uint32_t *pcarry, uint32_t total_length, uint32_t *out) +void PMurHash128x86_Result(const uint32_t ph[4], const uint32_t pcarry[4], uint32_t total_length, uint32_t out[4]) { uint32_t h1 = ph[0]; uint32_t h2 = ph[1]; @@ -240,7 +240,7 @@ skiprot: /* Main hashing function. Initialise carry[4] to {0,0,0,0} and h[4] to an initial {seed,seed,seed,seed} * if wanted. Both ph and pcarry are required arguments. */ -void PMurHash128x86_Process(uint32_t * const ph, uint32_t * const pcarry, const void * const key, int len) +void PMurHash128x86_Process(uint32_t ph[4], uint32_t pcarry[4], const void * const key, int len) { uint32_t h1 = ph[0]; uint32_t h2 = ph[1]; @@ -480,8 +480,8 @@ do {\ } while(0) /* Finalize a hash. To match the original Murmur3_128x64 the total_length must be provided */ -void PMurHash128x64_Result(const uint64_t * const ph, const uint64_t * const pcarry, - const uint32_t total_length, uint64_t * const out) +void PMurHash128x64_Result(const uint64_t ph[2], const uint64_t pcarry[2], + const uint32_t total_length, uint64_t out[2]) { uint64_t h1 = ph[0]; uint64_t h2 = ph[1]; @@ -523,7 +523,7 @@ void PMurHash128x64_Result(const uint64_t * const ph, const uint64_t * const pca /* Main hashing function. Initialise carry[2] to {0,0} and h[2] to an initial {seed,seed} * if wanted. Both ph and pcarry are required arguments. */ -void PMurHash128x64_Process(uint64_t * const ph, uint64_t * const pcarry, const void * const key, int len) +void PMurHash128x64_Process(uint64_t ph[2], uint64_t pcarry[2], const void * const key, int len) { uint64_t h1 = ph[0]; uint64_t h2 = ph[1]; |