From 83a876566103cd89584195a60b63ac3b184eb7a4 Mon Sep 17 00:00:00 2001 From: Josh Braendel Date: Sat, 3 Dec 2022 15:12:27 -0800 Subject: [PATCH] warning fix --- src/unix/pty.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/pty.cc b/src/unix/pty.cc index 2c277f7b..c9402afb 100644 --- a/src/unix/pty.cc +++ b/src/unix/pty.cc @@ -531,7 +531,7 @@ pty_after_waitpid(uv_async_t *async) { v8::Local cb = Nan::New(baton->cb); baton->cb.Reset(); - memset(&baton->cb, -1, sizeof(baton->cb)); + memset((void*)&baton->cb, -1, sizeof(baton->cb)); Nan::AsyncResource resource("pty_after_waitpid"); resource.runInAsyncScope(Nan::GetCurrentContext()->Global(), cb, 2, argv);