Skip to content

Commit

Permalink
src: replace handle dereference with ContainerOf
Browse files Browse the repository at this point in the history
this was influenced by nodejs#32269
  • Loading branch information
HarshithaKP committed Mar 16, 2020
1 parent 2e3dc12 commit 3e522af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/process_wrap.cc
Expand Up @@ -292,7 +292,7 @@ class ProcessWrap : public HandleWrap {
static void OnExit(uv_process_t* handle,
int64_t exit_status,
int term_signal) {
ProcessWrap* wrap = static_cast<ProcessWrap*>(handle->data);
ProcessWrap* wrap = ContainerOf(&ProcessWrap::process_, handle);
CHECK_NOT_NULL(wrap);
CHECK_EQ(&wrap->process_, handle);

Expand Down

0 comments on commit 3e522af

Please sign in to comment.