summaryrefslogtreecommitdiff
path: root/ext/hash/hash_adler32.c
diff options
context:
space:
mode:
authorMichael Wallner <mike@php.net>2006-04-25 08:34:25 +0000
committerMichael Wallner <mike@php.net>2006-04-25 08:34:25 +0000
commit1c02dff74a2ff07e84f0086043c3398b0c43f479 (patch)
tree70db21d14f3a79bbfa15b920dd443760ebff817a /ext/hash/hash_adler32.c
parent5b973c86eea86092230079000959e5cc24277e37 (diff)
downloadphp-git-1c02dff74a2ff07e84f0086043c3398b0c43f479.tar.gz
- Fixed bug #37192 (cc fails on hash_adler.c:32)
Diffstat (limited to 'ext/hash/hash_adler32.c')
-rw-r--r--ext/hash/hash_adler32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/hash/hash_adler32.c b/ext/hash/hash_adler32.c
index 6da3f841d3..6aad60c8ed 100644
--- a/ext/hash/hash_adler32.c
+++ b/ext/hash/hash_adler32.c
@@ -29,8 +29,10 @@ PHP_HASH_API void PHP_ADLER32Init(PHP_ADLER32_CTX *context)
PHP_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t len)
{
- php_hash_uint32 i, s[2] = { context->state & 0xffff, (context->state >> 16) & 0xffff };
+ php_hash_uint32 i, s[2];
+ s[0] = context->state & 0xffff;
+ s[1] = (context->state >> 16) & 0xffff;
for (i = 0; i < len; ++i) {
s[0] = (s[0] + input[i]) % 65521;
s[1] = (s[1] + s[0]) % 65521;