From 6969c357537febcb23756786ce7de94eb2ab6393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sun, 5 Sep 2021 11:58:44 +0200 Subject: [PATCH] src: fix C4805 MSVC warning '==' : unsafe mix of type 'bool' and type 'int' in operation --- src/crypto/crypto_util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/crypto_util.cc b/src/crypto/crypto_util.cc index f18304cd655842..7e0c8ba3eb60db 100644 --- a/src/crypto/crypto_util.cc +++ b/src/crypto/crypto_util.cc @@ -190,7 +190,7 @@ void SetFipsCrypto(const FunctionCallbackInfo& args) { #if OPENSSL_VERSION_MAJOR >= 3 if (enable == EVP_default_properties_is_fips_enabled(nullptr)) #else - if (enable == FIPS_mode()) + if (static_cast(enable) == FIPS_mode()) #endif return; // No action needed.