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); }