X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=crc%2Fsha256.c;h=2b39c42e22deb80365ef6269a44cf82e91e558ee;hb=4e757af1b161c3ff314933a1680365230a3eb386;hp=ae9ff4d99508190788f6ad33c4d8e5c501fe5676;hpb=f99d67f932abef4b282a394200e90b3180f54802;p=fio.git diff --git a/crc/sha256.c b/crc/sha256.c index ae9ff4d9..2b39c42e 100644 --- a/crc/sha256.c +++ b/crc/sha256.c @@ -17,7 +17,6 @@ * */ #include -#include #include "../lib/bswap.h" #include "sha256.h" @@ -277,7 +276,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;