Fix build

src/Common/CaresPTRResolver.cpp:126:27
error: implicit conversion loses integer precision: 'int64_t' (aka
'long') to 'int' [-Werror,-Wshorten-64-to-32]
This commit is contained in:
Igor Nikonov 2022-10-27 21:11:41 +00:00
parent 7715afa595
commit a4ce0e344a

View File

@ -128,7 +128,7 @@ namespace DB
int number_of_fds_ready = 0;
if (!readable_sockets.empty())
{
number_of_fds_ready = poll(readable_sockets.data(), readable_sockets.size(), timeout);
number_of_fds_ready = poll(readable_sockets.data(), readable_sockets.size(), static_cast<int>(timeout));
}
if (number_of_fds_ready > 0)