diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 228dd0d16da122..2275bc4d1f0df8 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -6277,7 +6277,7 @@ void SetEngine(const FunctionCallbackInfo& args) { ENGINE* engine = LoadEngineById(*engine_id, &errmsg); if (engine == nullptr) { - int err = ERR_get_error(); + unsigned long err = ERR_get_error(); // NOLINT(runtime/int) if (err == 0) return args.GetReturnValue().Set(false); return ThrowCryptoError(env, err);