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:
authorMichaƫl Zasso <targos@protonmail.com>2021-01-30 18:59:54 +0300
committerRich Trott <rtrott@gmail.com>2021-02-08 04:51:41 +0300
commitb346cd1760dfad560d89cb797be2cf6f9f77bb77 (patch)
treed5a8ab6889d72e8090cd5198905db8635fe37008 /src/node.cc
parent907d6b6b40a62c5ae831bbd7551e7c57c3a27b6b (diff)
src: avoid implicit type conversions
This fixes a bunch of C4244 ('conversion' conversion from 'type1' to 'type2', possible loss of data) MSVC warnings in the code base. PR-URL: https://github.com/nodejs/node/pull/37149 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node.cc')
-rw-r--r--src/node.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.cc b/src/node.cc
index 343a8d9b79a..09c6fcd7bed 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -1023,7 +1023,7 @@ InitializationResult InitializeOncePerProcess(int argc, char** argv) {
#endif // HAVE_OPENSSL
per_process::v8_platform.Initialize(
- per_process::cli_options->v8_thread_pool_size);
+ static_cast<int>(per_process::cli_options->v8_thread_pool_size));
V8::Initialize();
performance::performance_v8_start = PERFORMANCE_NOW();
per_process::v8_initialized = true;