diff --git a/src/unix/pty.cc b/src/unix/pty.cc index 2c277f7bb..c9402afb8 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);