From: Anatol Belski Date: Sun, 13 Dec 2020 20:17:17 +0000 (+0100) Subject: hash: Fix signatures in the final callback defs X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=269a8841ae6edae3bc0ed8675390c78bd9f09bd8;p=php hash: Fix signatures in the final callback defs Signed-off-by: Anatol Belski --- diff --git a/ext/hash/hash_murmur.c b/ext/hash/hash_murmur.c index 466231054c..d3d9f640c0 100644 --- a/ext/hash/hash_murmur.c +++ b/ext/hash/hash_murmur.c @@ -121,7 +121,7 @@ PHP_HASH_API void PHP_MURMUR3CUpdate(PHP_MURMUR3C_CTX *ctx, const unsigned char PMurHash128x86_Process(ctx->h, ctx->carry, in, len); } -PHP_HASH_API void PHP_MURMUR3CFinal(unsigned char digest[4], PHP_MURMUR3C_CTX *ctx) +PHP_HASH_API void PHP_MURMUR3CFinal(unsigned char digest[16], PHP_MURMUR3C_CTX *ctx) { uint32_t h[4] = {0, 0, 0, 0}; 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 PMurHash128x64_Process(ctx->h, ctx->carry, in, len); } -PHP_HASH_API void PHP_MURMUR3FFinal(unsigned char digest[4], PHP_MURMUR3F_CTX *ctx) +PHP_HASH_API void PHP_MURMUR3FFinal(unsigned char digest[16], PHP_MURMUR3F_CTX *ctx) { uint64_t h[2] = {0, 0}; PMurHash128x64_Result(ctx->h, ctx->carry, ctx->len, h);