diff options
author | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-05-12 12:05:01 +0200 |
---|---|---|
committer | Konstantin Ritt <ritt.ks@gmail.com> | 2015-05-13 01:09:16 +0000 |
commit | af6c52522b1afc56c5acf30253aaa89ee9c99934 (patch) | |
tree | 54094056874999604c628ac67bed057a00620269 /src/3rdparty/md4 | |
parent | ce9ad30c78fe0c9ada7cde579f4f9945821f8e5f (diff) |
Fix MSVC 64 bit compiler warnings in 3rdparty code
Make casts from size_t to int explicit to avoid warnings like
warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
Change-Id: Ib69c25519dadf8732b0c08412cc97887df00a2d4
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src/3rdparty/md4')
-rw-r--r-- | src/3rdparty/md4/md4.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/md4/md4.cpp b/src/3rdparty/md4/md4.cpp index 94ac6adf58..ec74958d69 100644 --- a/src/3rdparty/md4/md4.cpp +++ b/src/3rdparty/md4/md4.cpp @@ -180,7 +180,7 @@ static void md4_update(struct md4_context *ctx, const unsigned char *data, size_ saved_lo = ctx->lo; if ((ctx->lo = (saved_lo + size) & 0x1fffffff) < saved_lo) ctx->hi++; - ctx->hi += size >> 29; + ctx->hi += (quint32)(size >> 29); used = saved_lo & 0x3f; |