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/js_stream.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/js_stream.cc')
-rw-r--r--src/js_stream.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js_stream.cc b/src/js_stream.cc
index 399e073efba..720008ecefc 100644
--- a/src/js_stream.cc
+++ b/src/js_stream.cc
@@ -178,7 +178,7 @@ void JSStream::ReadBuffer(const FunctionCallbackInfo<Value>& args) {
memcpy(buf.base, data, avail);
data += avail;
- len -= avail;
+ len -= static_cast<int>(avail);
wrap->EmitRead(avail, buf);
}
}