mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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:
1 parent
640353af86
commit
73aa4e34ff
1 file changed
+1
-1
@@ -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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user