mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
hash: Fix signatures in the final callback defs
Signed-off-by: Anatol Belski <ab@php.net>
This commit is contained in:
parent
97d2dd0f90
commit
269a8841ae
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user