diff options
author | Anatol Belski <ab@php.net> | 2020-01-29 12:34:04 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2020-01-29 12:36:37 +0100 |
commit | 7d2ef3d2e540885dec26d91dad061bff1621ad07 (patch) | |
tree | 7be541e112b96d61eb1c3c0358f64cdbccf45b54 | |
parent | 083bbf5140e4ae439255fc2bf3c5f4a65599ba8b (diff) | |
download | php-git-7d2ef3d2e540885dec26d91dad061bff1621ad07.tar.gz |
Fix datatype
This has been introduced by 84b0d0fabaaf21ee056984a33b573121296af942.
Besides it causes runtime issues on POWER5 (and presumably later), the
implementation would expect this array to consist on 32-bit integers.
-rw-r--r-- | ext/hash/php_hash_gost.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/hash/php_hash_gost.h b/ext/hash/php_hash_gost.h index 537e3d0bdc..987eb655cb 100644 --- a/ext/hash/php_hash_gost.h +++ b/ext/hash/php_hash_gost.h @@ -22,7 +22,7 @@ /* GOST context */ typedef struct { uint32_t state[16]; - size_t count[2]; + uint32_t count[2]; unsigned char length; unsigned char buffer[32]; const uint32_t (*tables)[4][256]; |