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-02-12 22:57:53 +0300
committerMichaël Zasso <targos@protonmail.com>2021-02-20 12:50:28 +0300
commitd1f1fcfe0cea492152bcc8d008dc2ef59e2e0786 (patch)
treeee759f9140a3d9fe5b75f73d7fc57d86a918ff3c /src/inspector_agent.cc
parent5421e15bdc6122420d90ec462c3622b57d59c9d6 (diff)
src: avoid implicit type conversions (take 2)
This fixes more C4244 MSVC warnings in the code base. Refs: https://github.com/nodejs/node/pull/37149 PR-URL: https://github.com/nodejs/node/pull/37334 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/inspector_agent.cc')
-rw-r--r--src/inspector_agent.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc
index c101bf80d2a..9c3721f0689 100644
--- a/src/inspector_agent.cc
+++ b/src/inspector_agent.cc
@@ -527,7 +527,7 @@ class NodeInspectorClient : public V8InspectorClient {
timers_.emplace(std::piecewise_construct, std::make_tuple(data),
std::make_tuple(env_, [=]() { callback(data); }));
CHECK(result.second);
- uint64_t interval = 1000 * interval_s;
+ uint64_t interval = static_cast<uint64_t>(1000 * interval_s);
result.first->second.Update(interval, interval);
}
@@ -917,7 +917,7 @@ void Agent::SetParentHandle(
}
std::unique_ptr<ParentInspectorHandle> Agent::GetParentHandle(
- int thread_id, const std::string& url) {
+ uint64_t thread_id, const std::string& url) {
if (!parent_handle_) {
return client_->getWorkerManager()->NewParentHandle(thread_id, url);
} else {