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/node_serdes.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/node_serdes.cc')
-rw-r--r--src/node_serdes.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_serdes.cc b/src/node_serdes.cc
index be16f4dd053..f6f0034bc24 100644
--- a/src/node_serdes.cc
+++ b/src/node_serdes.cc
@@ -444,7 +444,7 @@ void DeserializerContext::ReadRawBytes(
CHECK_GE(position, ctx->data_);
CHECK_LE(position + length, ctx->data_ + ctx->length_);
- const uint32_t offset = position - ctx->data_;
+ const uint32_t offset = static_cast<uint32_t>(position - ctx->data_);
CHECK_EQ(ctx->data_ + offset, position);
args.GetReturnValue().Set(offset);