From aae9a52d22b18792e70ba8358222b4136068cd23 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Thu, 21 Feb 2019 23:30:54 +0800 Subject: [PATCH] src: remove redundant cast in PipeWrap::Fchmod --- src/pipe_wrap.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc index 06bb3dd73d1b3c..2354533ddf3e43 100644 --- a/src/pipe_wrap.cc +++ b/src/pipe_wrap.cc @@ -187,8 +187,7 @@ void PipeWrap::Fchmod(const v8::FunctionCallbackInfo& args) { ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder()); CHECK(args[0]->IsInt32()); int mode = args[0].As()->Value(); - int err = uv_pipe_chmod(reinterpret_cast(&wrap->handle_), - mode); + int err = uv_pipe_chmod(&wrap->handle_, mode); args.GetReturnValue().Set(err); }