From d3ea63921f834d46b13e72a344d8c24833dc75d5 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Sat, 2 Feb 2019 17:07:36 +0800 Subject: [PATCH] src: fix data type in node_crypto.cc Signed-off-by: gengjiawen PR-URL: https://github.com/nodejs/node/pull/25889 Reviewed-By: Anna Henningsen Reviewed-By: Daniel Bevenius Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- src/node_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index c30212117ef4f4..056ebbc555c44d 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -6245,7 +6245,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);