summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-03-17 03:13:31 +0100
committerMitya Selivanov <automainint@guattari.tech>2023-03-17 03:13:31 +0100
commit22ebe6c0f4a2c9cc239e0c0b7bd0ea26bf148a27 (patch)
treebf4396c6d6e931635e248e0ce779d0883cd61e57 /source
parent1a3c3099c719cd4e71b6bf960f56e62a05b82ff9 (diff)
downloadkit-22ebe6c0f4a2c9cc239e0c0b7bd0ea26bf148a27.zip
[sha256] bitlen should be 64-bit long
Diffstat (limited to 'source')
-rw-r--r--source/kit/sha256.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/kit/sha256.c b/source/kit/sha256.c
index 5d6a37a..9c99c53 100644
--- a/source/kit/sha256.c
+++ b/source/kit/sha256.c
@@ -88,7 +88,7 @@ kit_sha256_hash_t kit_sha256(ptrdiff_t const in_size,
ptrdiff_t i;
ptrdiff_t datalen = 0;
- ptrdiff_t bitlen = 0;
+ uint64_t bitlen = 0;
if (in_data != NULL)
for (i = 0; i < in_size; ++i) {