src: fix C4805 MSVC warning

'==' : unsafe mix of type 'bool' and type 'int' in operation

PR-URL: https://github.com/nodejs/node/pull/39998
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
Michaël Zasso authored and Beth Griggs committed 2021-09-21 19:13:36 +01:00
1 parent 640353af86
commit 73aa4e34ff
1 file changed
+1 -1
+1 -1
View File
@@ -190,7 +190,7 @@ void SetFipsCrypto(const FunctionCallbackInfo<Value>& args) {
#if OPENSSL_VERSION_MAJOR >= 3
if (enable == EVP_default_properties_is_fips_enabled(nullptr))
#else
if (enable == FIPS_mode())
if (static_cast<int>(enable) == FIPS_mode())
#endif
return; // No action needed.