From 40b4717a0dc54973be67b23853c3f4c9a8880f8a Mon Sep 17 00:00:00 2001 From: fallenoak Date: Mon, 20 Feb 2023 16:18:46 -0600 Subject: [PATCH] chore(net): missed another pair of FD_SET and FD_ISSET macros --- src/net/connection/WowConnectionNetMac.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/connection/WowConnectionNetMac.cpp b/src/net/connection/WowConnectionNetMac.cpp index e86ac73..d0b410e 100644 --- a/src/net/connection/WowConnectionNetMac.cpp +++ b/src/net/connection/WowConnectionNetMac.cpp @@ -56,7 +56,7 @@ void WowConnectionNet::PlatformRun() { fd_set errorFds; FD_ZERO(&errorFds); - readFds.fds_bits[s_workerPipe[0] >> 5] |= 1 << (s_workerPipe[0] & 0x1F); + FD_SET(s_workerPipe[0], &readFds); auto fdCount = s_workerPipe[0]; @@ -132,7 +132,7 @@ void WowConnectionNet::PlatformRun() { select(fdCount + 1, &readFds, &writeFds, &errorFds, &timeout); auto v1 = s_workerPipe[0]; - if (((1 << (s_workerPipe[0] & 0x1F)) & readFds.fds_bits[s_workerPipe[0] >> 5]) != 0) { + if (FD_ISSET(s_workerPipe[0], &readFds)) { while (read(v1, buf, 1u) > 0) { v1 = s_workerPipe[0]; }