diff options
author | aunsane <aunsane@gmail.com> | 2018-04-20 18:11:20 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-04-20 18:11:20 +0300 |
commit | 25a68cc7e69f715bea0dbdece92c9372ebf4fd45 (patch) | |
tree | facde99952ce8a45e0ba3ab2dc170dcf8699c9a4 | |
parent | f4a94401483903ef13e77b9865e00661dd034290 (diff) |
warning fix
-rw-r--r-- | src/mir_core/src/sha1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_core/src/sha1.cpp b/src/mir_core/src/sha1.cpp index bb6955023d..894fc48011 100644 --- a/src/mir_core/src/sha1.cpp +++ b/src/mir_core/src/sha1.cpp @@ -98,7 +98,7 @@ MIR_CORE_DLL(void) mir_sha1_append(mir_sha1_ctx *ctx, const BYTE *dataIn, size_t {
/* Read the data into W and process blocks as they get full
*/
- for (int i = 0; i < len; i++) {
+ for (size_t i = 0; i < len; i++) {
ctx->W[ctx->lenW / 4] <<= 8;
ctx->W[ctx->lenW / 4] |= (unsigned long)dataIn[i];
if ((++ctx->lenW) % 64 == 0) {
|