diff options
author | Michaƫl Zasso <targos@protonmail.com> | 2021-01-30 18:59:54 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2021-02-08 04:51:41 +0300 |
commit | b346cd1760dfad560d89cb797be2cf6f9f77bb77 (patch) | |
tree | d5a8ab6889d72e8090cd5198905db8635fe37008 /src/cares_wrap.cc | |
parent | 907d6b6b40a62c5ae831bbd7551e7c57c3a27b6b (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/cares_wrap.cc')
-rw-r--r-- | src/cares_wrap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc index 2bf4211b118..bd00cd25624 100644 --- a/src/cares_wrap.cc +++ b/src/cares_wrap.cc @@ -1901,7 +1901,7 @@ void AfterGetAddrInfo(uv_getaddrinfo_t* req, int status, struct addrinfo* res) { Null(env->isolate()) }; - uint64_t n = 0; + uint32_t n = 0; const bool verbatim = req_wrap->verbatim(); if (status == 0) { |