From 6be4756be1ce581b696a9040185167db4547f51f 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 --- 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 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);