Merge pull request #42658 from jrdi/fix-iotest-nonblock-compile

Minor fix iotest_nonblock build
This commit is contained in:
Alexey Milovidov 2022-10-26 10:46:53 +02:00 committed by GitHub
commit cbca7c3387
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,7 @@ int mainImpl(int argc, char ** argv)
size_t ops = 0;
while (ops < count)
{
if (poll(polls.data(), descriptors, -1) <= 0)
if (poll(polls.data(), static_cast<unsigned int>(descriptors), -1) <= 0)
throwFromErrno("poll failed", ErrorCodes::SYSTEM_ERROR);
for (size_t i = 0; i < descriptors; ++i)
{