Skip to content

Commit 73aa4e3

Browse files
targosBethGriggs
authored andcommittedSep 21, 2021
src: fix C4805 MSVC warning
'==' : 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>
1 parent 640353a commit 73aa4e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/crypto/crypto_util.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void SetFipsCrypto(const FunctionCallbackInfo<Value>& args) {
190190
#if OPENSSL_VERSION_MAJOR >= 3
191191
if (enable == EVP_default_properties_is_fips_enabled(nullptr))
192192
#else
193-
if (enable == FIPS_mode())
193+
if (static_cast<int>(enable) == FIPS_mode())
194194
#endif
195195
return; // No action needed.
196196

0 commit comments

Comments
 (0)
Please sign in to comment.