diff options
Diffstat (limited to 'src/node_file.cc')
-rw-r--r-- | src/node_file.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/node_file.cc b/src/node_file.cc index a669c0855f..e63dd3fd37 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -282,7 +282,7 @@ static void After(uv_fs_t *req) { } name_argv[name_idx++] = filename; - if (name_idx >= ARRAY_SIZE(name_argv)) { + if (name_idx >= arraysize(name_argv)) { fn->Call(env->context(), names, name_idx, name_argv) .ToLocalChecked(); name_idx = 0; @@ -491,7 +491,7 @@ Local<Value> BuildStatsObject(Environment* env, const uv_stat_t* s) { Local<Value> stats = env->fs_stats_constructor_function()->NewInstance( env->context(), - ARRAY_SIZE(argv), + arraysize(argv), argv).FromMaybe(Local<Value>()); if (stats.IsEmpty()) @@ -913,7 +913,7 @@ static void ReadDir(const FunctionCallbackInfo<Value>& args) { name_v[name_idx++] = filename; - if (name_idx >= ARRAY_SIZE(name_v)) { + if (name_idx >= arraysize(name_v)) { fn->Call(env->context(), names, name_idx, name_v) .ToLocalChecked(); name_idx = 0; @@ -1030,7 +1030,7 @@ static void WriteBuffers(const FunctionCallbackInfo<Value>& args) { uv_buf_t s_iovs[1024]; // use stack allocation when possible uv_buf_t* iovs; - if (chunkCount > ARRAY_SIZE(s_iovs)) + if (chunkCount > arraysize(s_iovs)) iovs = new uv_buf_t[chunkCount]; else iovs = s_iovs; |