projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
configure: output_sym CONFIG_GFIO
[fio.git]
/
crc
/
sha256.c
diff --git
a/crc/sha256.c
b/crc/sha256.c
index ae9ff4d99508190788f6ad33c4d8e5c501fe5676..2fd17a32d16cfdd986a558e562a8d68e5b25b3dd 100644
(file)
--- a/
crc/sha256.c
+++ b/
crc/sha256.c
@@
-277,7
+277,7
@@
void fio_sha256_final(struct fio_sha256_ctx *sctx)
static const uint8_t padding[64] = { 0x80, };
/* Save number of bits */
static const uint8_t padding[64] = { 0x80, };
/* Save number of bits */
- bits = sctx->count << 3;
+ bits =
(uint64_t)
sctx->count << 3;
/* Pad out to 56 mod 64. */
index = sctx->count & 0x3f;
/* Pad out to 56 mod 64. */
index = sctx->count & 0x3f;