mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Netplay: Fix building on clang 17.
This commit is contained in:
@ -257,7 +257,7 @@ bool NetPlayClient::Connect()
|
||||
ENetEvent netEvent;
|
||||
int net;
|
||||
while ((net = enet_host_service(m_client, &netEvent, 5000)) > 0 &&
|
||||
netEvent.type == Common::ENet::SKIPPABLE_EVENT)
|
||||
static_cast<int>(netEvent.type) == Common::ENet::SKIPPABLE_EVENT)
|
||||
{
|
||||
// ignore packets from traversal server
|
||||
}
|
||||
@ -1645,7 +1645,7 @@ void NetPlayClient::ThreadFunc()
|
||||
break;
|
||||
default:
|
||||
// not a valid switch case due to not technically being part of the enum
|
||||
if (netEvent.type == Common::ENet::SKIPPABLE_EVENT)
|
||||
if (static_cast<int>(netEvent.type) == Common::ENet::SKIPPABLE_EVENT)
|
||||
INFO_LOG_FMT(NETPLAY, "enet_host_service: skippable packet event");
|
||||
else
|
||||
ERROR_LOG_FMT(NETPLAY, "enet_host_service: unknown event type: {}", int(netEvent.type));
|
||||
|
Reference in New Issue
Block a user