diff options
Diffstat (limited to 'src/node_zlib.cc')
-rw-r--r-- | src/node_zlib.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_zlib.cc b/src/node_zlib.cc index 4453d82b44..4f0c938998 100644 --- a/src/node_zlib.cc +++ b/src/node_zlib.cc @@ -246,7 +246,7 @@ class ZCtx : public AsyncWrap { // for a single write() call, until all of the input bytes have // been consumed. static void Process(uv_work_t* work_req) { - ZCtx *ctx = CONTAINER_OF(work_req, ZCtx, work_req_); + ZCtx *ctx = ContainerOf(&ZCtx::work_req_, work_req); // If the avail_out is left at 0, then it means that it ran out // of room. If there was avail_out left over, then it means @@ -320,7 +320,7 @@ class ZCtx : public AsyncWrap { static void After(uv_work_t* work_req, int status) { assert(status == 0); - ZCtx* ctx = CONTAINER_OF(work_req, ZCtx, work_req_); + ZCtx* ctx = ContainerOf(&ZCtx::work_req_, work_req); Environment* env = ctx->env(); HandleScope handle_scope(env->isolate()); |