From 8c81c6fde1485fc27f88b4ffbcd8217a294c2215 Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Fri, 3 Dec 2021 12:02:32 +0300 Subject: [PATCH] MSVC: Fix signedness in comparison Error message: gost_crypt.c(652,36): warning C4018: '<': signed/unsigned mismatch Signed-off-by: Vitaly Chikunov --- gost_crypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gost_crypt.c b/gost_crypt.c index 3cbea76..da78e39 100644 --- a/gost_crypt.c +++ b/gost_crypt.c @@ -649,7 +649,7 @@ static void ctr64_inc(unsigned char *counter) static inline void apply_acpkm_magma(struct ossl_gost_cipher_ctx * ctx, unsigned int *num) { - if (!ctx->key_meshing || (*num < ctx->key_meshing)) + if (!ctx->key_meshing || (*num < (unsigned int)ctx->key_meshing)) return; acpkm_magma_key_meshing(&ctx->cctx); *num &= MAGMA_BLOCK_MASK; -- 2.39.2