diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2018-01-21 09:16:47 +0300 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2018-01-23 22:54:37 +0300 |
commit | d09d87821df461363b8ef87f9a3ecb6db7674abc (patch) | |
tree | ab2702603b4148b413266e6489c94ebba147cd18 /src/node_stat_watcher.cc | |
parent | 13bc53fb2644ec2fa79eded305f1c6306a521eaf (diff) |
fs: use AliasedBuffer for fs_stats_field_array
PR-URL: https://github.com/nodejs/node/pull/18276
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_stat_watcher.cc')
-rw-r--r-- | src/node_stat_watcher.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_stat_watcher.cc b/src/node_stat_watcher.cc index 9aa0c950591..00b43f6eb7c 100644 --- a/src/node_stat_watcher.cc +++ b/src/node_stat_watcher.cc @@ -89,7 +89,7 @@ void StatWatcher::Callback(uv_fs_poll_t* handle, Context::Scope context_scope(env->context()); FillStatsArray(env->fs_stats_field_array(), curr); - FillStatsArray(env->fs_stats_field_array() + 14, prev); + FillStatsArray(env->fs_stats_field_array(), prev, 14); Local<Value> arg = Integer::New(env->isolate(), status); wrap->MakeCallback(env->onchange_string(), 1, &arg); } |