]> granicus.if.org Git - php/commitdiff
hash: Fix signatures in the final callback defs
authorAnatol Belski <ab@php.net>
Sun, 13 Dec 2020 20:17:17 +0000 (21:17 +0100)
committerAnatol Belski <ab@php.net>
Sun, 13 Dec 2020 20:17:46 +0000 (21:17 +0100)
Signed-off-by: Anatol Belski <ab@php.net>
ext/hash/hash_murmur.c

index 466231054c6694559463ad1460e477e165147adb..d3d9f640c0e4c45a27f21cbd16d95c6ae11cb514 100644 (file)
@@ -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);