Skip to content

Commit af2a693

Browse files
gengjiawenaddaleax
authored andcommitted
src: remove redundant cast in PipeWrap::Fchmod
PR-URL: #26242 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent b62e228 commit af2a693

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pipe_wrap.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ void PipeWrap::Fchmod(const v8::FunctionCallbackInfo<v8::Value>& args) {
187187
ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder());
188188
CHECK(args[0]->IsInt32());
189189
int mode = args[0].As<Int32>()->Value();
190-
int err = uv_pipe_chmod(reinterpret_cast<uv_pipe_t*>(&wrap->handle_),
191-
mode);
190+
int err = uv_pipe_chmod(&wrap->handle_, mode);
192191
args.GetReturnValue().Set(err);
193192
}
194193

0 commit comments

Comments
 (0)