aboutsummaryrefslogtreecommitdiff
path: root/src/node_zlib.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_zlib.cc')
-rw-r--r--src/node_zlib.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_zlib.cc b/src/node_zlib.cc
index d84344228e..4bf5cc76ba 100644
--- a/src/node_zlib.cc
+++ b/src/node_zlib.cc
@@ -332,7 +332,7 @@ class ZCtx : public AsyncWrap {
// call the write() cb
Local<Value> args[2] = { avail_in, avail_out };
- ctx->MakeCallback(env->callback_string(), ARRAY_SIZE(args), args);
+ ctx->MakeCallback(env->callback_string(), arraysize(args), args);
ctx->Unref();
if (ctx->pending_close_)
@@ -354,7 +354,7 @@ class ZCtx : public AsyncWrap {
OneByteString(env->isolate(), message),
Number::New(env->isolate(), ctx->err_)
};
- ctx->MakeCallback(env->onerror_string(), ARRAY_SIZE(args), args);
+ ctx->MakeCallback(env->onerror_string(), arraysize(args), args);
// no hope of rescue.
if (ctx->write_in_progress_)