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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
  • 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
Original file line number Diff line number Diff line change
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.