From 25a68cc7e69f715bea0dbdece92c9372ebf4fd45 Mon Sep 17 00:00:00 2001 From: aunsane Date: Fri, 20 Apr 2018 18:11:20 +0300 Subject: warning fix --- src/mir_core/src/sha1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3