diff options
author | Dmitry Stogov <dmitry@zend.com> | 2016-06-22 00:40:50 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2016-06-22 00:40:50 +0300 |
commit | 323b2733f6b42d00dd86e77ac524d64f6ddc4e22 (patch) | |
tree | 49c72ac7d1e6077369f1de6a5d7a6d7847e51bf9 /ext/hash/hash_sha3.c | |
parent | 4ccbe03e445800d26aba5424a84e64e235f08ece (diff) | |
download | php-git-323b2733f6b42d00dd86e77ac524d64f6ddc4e22.tar.gz |
Fixed compilation warnings
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) { |