From df6e34e75bee313afa487e901c3ba1f84b8e4e8c Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 22 Aug 2018 17:10:04 +0200 Subject: [PATCH] Astat: small fix Template parameter was dubious under MSW (unable to deduce). --- tools/astat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/astat.cpp b/tools/astat.cpp index c05375f0e..8783369e0 100644 --- a/tools/astat.cpp +++ b/tools/astat.cpp @@ -88,7 +88,7 @@ static void worker(ug_connection &c) FD_ZERO(&fds); FD_SET(c.fd, &fds); FD_SET(c.should_exit_fd[0], &fds); - int nfds = std::max(c.fd, c.should_exit_fd[0]) + 1; + int nfds = std::max(c.fd, c.should_exit_fd[0]) + 1; int rc = select(nfds, &fds, NULL, NULL, NULL); if (rc <= 0) {