Skip to content

Commit 269a884

Browse files
committed
hash: Fix signatures in the final callback defs
Signed-off-by: Anatol Belski <ab@php.net>
1 parent 97d2dd0 commit 269a884

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/hash/hash_murmur.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ PHP_HASH_API void PHP_MURMUR3CUpdate(PHP_MURMUR3C_CTX *ctx, const unsigned char
121121
PMurHash128x86_Process(ctx->h, ctx->carry, in, len);
122122
}
123123

124-
PHP_HASH_API void PHP_MURMUR3CFinal(unsigned char digest[4], PHP_MURMUR3C_CTX *ctx)
124+
PHP_HASH_API void PHP_MURMUR3CFinal(unsigned char digest[16], PHP_MURMUR3C_CTX *ctx)
125125
{
126126
uint32_t h[4] = {0, 0, 0, 0};
127127
PMurHash128x86_Result(ctx->h, ctx->carry, ctx->len, h);
@@ -193,7 +193,7 @@ PHP_HASH_API void PHP_MURMUR3FUpdate(PHP_MURMUR3F_CTX *ctx, const unsigned char
193193
PMurHash128x64_Process(ctx->h, ctx->carry, in, len);
194194
}
195195

196-
PHP_HASH_API void PHP_MURMUR3FFinal(unsigned char digest[4], PHP_MURMUR3F_CTX *ctx)
196+
PHP_HASH_API void PHP_MURMUR3FFinal(unsigned char digest[16], PHP_MURMUR3F_CTX *ctx)
197197
{
198198
uint64_t h[2] = {0, 0};
199199
PMurHash128x64_Result(ctx->h, ctx->carry, ctx->len, h);

0 commit comments

Comments
 (0)