summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/node_crypto.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index c30212117e..056ebbc555 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -6245,7 +6245,7 @@ void SetEngine(const FunctionCallbackInfo<Value>& 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);