summaryrefslogtreecommitdiff
path: root/src/node_file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_file.cc')
-rw-r--r--src/node_file.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/node_file.cc b/src/node_file.cc
index 8f82d639d6..564c63bad7 100644
--- a/src/node_file.cc
+++ b/src/node_file.cc
@@ -2197,10 +2197,13 @@ void Initialize(Local<Object> target,
env->SetMethod(target, "mkdtemp", Mkdtemp);
- target->Set(context,
- FIXED_ONE_BYTE_STRING(isolate, "kFsStatsFieldsNumber"),
- Integer::New(isolate, kFsStatsFieldsNumber))
- .Check();
+ target
+ ->Set(context,
+ FIXED_ONE_BYTE_STRING(isolate, "kFsStatsFieldsNumber"),
+ Integer::New(
+ isolate,
+ static_cast<int32_t>(FsStatsOffset::kFsStatsFieldsNumber)))
+ .Check();
target->Set(context,
FIXED_ONE_BYTE_STRING(isolate, "statValues"),