Skip to content

Commit

Permalink
src: fix data type in node_crypto.cc
Browse files Browse the repository at this point in the history
Signed-off-by: gengjiawen <technicalcute@gmail.com>

PR-URL: #25889
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
gengjiawen authored and addaleax committed Feb 6, 2019
1 parent d4c4f77 commit 5a66e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6246,7 +6246,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);
Expand Down

0 comments on commit 5a66e38

Please sign in to comment.