Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2016-03-31 13:47:06 +0300
committerBen Noordhuis <info@bnoordhuis.nl>2016-04-05 12:37:02 +0300
commita7581d0859ce5139b2d7795c5ac1f8df0e85815c (patch)
treeeeb93d30f9690d1ee6e96a46685574aeba25ca9d /src/node_stat_watcher.cc
parent00c876dec54f9c515aeed78c75ce61a4e0206d95 (diff)
src: replace ARRAY_SIZE with typesafe arraysize
To prevent `ARRAY_SIZE(&arg)` (i.e., taking the array size of a pointer) from happening again. PR-URL: https://github.com/nodejs/node/pull/5969 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_stat_watcher.cc')
-rw-r--r--src/node_stat_watcher.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_stat_watcher.cc b/src/node_stat_watcher.cc
index bd1cb73248e..4fa01794f6c 100644
--- a/src/node_stat_watcher.cc
+++ b/src/node_stat_watcher.cc
@@ -70,7 +70,7 @@ void StatWatcher::Callback(uv_fs_poll_t* handle,
BuildStatsObject(env, prev),
Integer::New(env->isolate(), status)
};
- wrap->MakeCallback(env->onchange_string(), ARRAY_SIZE(argv), argv);
+ wrap->MakeCallback(env->onchange_string(), arraysize(argv), argv);
}