commit | 7bf3a5733a4348bca246e3c4cb6d532f5873f85b | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Tue Oct 14 19:50:31 2014 -0600 |
committer | Mohamad Ayyash <mkayyash@google.com> | Fri Mar 06 17:57:24 2015 -0800 |
tree | 792140ea3a7cd87a755ef67028eaf88fa2fff80f | |
parent | 7b3aea998ded561dd97c6bcd3596798f11cba1b1 [diff] |
sha256: cast shift to uint64_t Signed-off-by: Jens Axboe <axboe@fb.com>
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 @@ 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;