From 73aa4e34ff5eb09f6ff1d7a08db4172e901dbe12 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit '==' : unsafe mix of type 'bool' and type 'int' in operation PR-URL: https://github.com/nodejs/node/pull/39998 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen --- 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.