summaryrefslogtreecommitdiff
path: root/crc
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-10-14 19:50:31 -0600
committerJens Axboe <axboe@fb.com>2014-10-14 19:50:31 -0600
commit900485d1662f12e8e359248bd89603cb2cbbeb2b (patch)
tree8d7cd63f2b6652ff84ab45b7bd320c19a1443309 /crc
parente5607fe5385523d6029d21883f51fe0053abb5aa (diff)
sha256: cast shift to uint64_t
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'crc')
-rw-r--r--crc/sha256.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crc/sha256.c b/crc/sha256.c
index ae9ff4d..2fd17a3 100644
--- 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 */
- bits = sctx->count << 3;
+ bits = (uint64_t) sctx->count << 3;
/* Pad out to 56 mod 64. */
index = sctx->count & 0x3f;