diff --git a/src/crypto/crypto_util.cc b/src/crypto/crypto_util.cc index f18304cd655842..7e0c8ba3eb60db 100644 --- a/src/crypto/crypto_util.cc +++ b/src/crypto/crypto_util.cc @@ -190,7 +190,7 @@ void SetFipsCrypto(const FunctionCallbackInfo& args) { #if OPENSSL_VERSION_MAJOR >= 3 if (enable == EVP_default_properties_is_fips_enabled(nullptr)) #else - if (enable == FIPS_mode()) + if (static_cast(enable) == FIPS_mode()) #endif return; // No action needed.