From b346cd1760dfad560d89cb797be2cf6f9f77bb77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sat, 30 Jan 2021 16:59:54 +0100 Subject: 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 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Rich Trott Reviewed-By: James M Snell --- src/cares_wrap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cares_wrap.cc') 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) { -- cgit v1.2.3