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 <[email protected]>

PR-URL: #25889
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • 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.