diff options
Diffstat (limited to 'libhashsum_init_sha1_hasher.c')
-rw-r--r-- | libhashsum_init_sha1_hasher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhashsum_init_sha1_hasher.c b/libhashsum_init_sha1_hasher.c index 25c7496..8287429 100644 --- a/libhashsum_init_sha1_hasher.c +++ b/libhashsum_init_sha1_hasher.c @@ -37,7 +37,7 @@ finalise_const(struct libhashsum_hasher *this, const void *data, size_t bytes, u m = &m[r]; bytes -= r; - libsha1_digest(&this->state.sha1.s, data, (bytes << 3) | extra_bits, this->state.sha1.sum); + libsha1_digest(&this->state.sha1.s, m, (bytes << 3) | (size_t)extra_bits, this->state.sha1.sum); memset(&this->state.sha1.s, 0, sizeof(this->state.sha1.s)); this->hash_output = this->state.sha1.sum; return 0; |