diff options
Diffstat (limited to 'ext/hash/hash_sha3.c')
-rw-r--r-- | ext/hash/hash_sha3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/hash/hash_sha3.c b/ext/hash/hash_sha3.c index aab17c1476..8f18fa1c27 100644 --- a/ext/hash/hash_sha3.c +++ b/ext/hash/hash_sha3.c @@ -153,9 +153,9 @@ static void PHP_SHA3_Init(PHP_SHA3_CTX* ctx, static void PHP_SHA3_Update(PHP_SHA3_CTX* ctx, const unsigned char* buf, unsigned int count, - int block_size) { + size_t block_size) { while (count > 0) { - int len = block_size - ctx->pos; + unsigned int len = block_size - ctx->pos; if (len > count) len = count; count -= len; while (len-- > 0) { |