Skip to content

Commit

Permalink
src: fix C4805 MSVC warning
Browse files Browse the repository at this point in the history
'==' : unsafe mix of type 'bool' and type 'int' in operation

PR-URL: #39998
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
targos authored and BethGriggs committed Sep 21, 2021
1 parent 640353a commit 73aa4e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/crypto_util.cc
Expand Up @@ -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.

Expand Down

0 comments on commit 73aa4e3

Please sign in to comment.